Open fransf-wtax opened 3 years ago
Hi, how are you? Do you solve the problem? I have the same problem.
Hi @BrunoMendes-Hotmart @fransf-wtax , Have you authenticated your orgs using jwt flow?
If this is the case, the sfdx force:org:display
command will not show auth url.
sfdx force:auth:sfdxurl:store -h | grep "only for orgs authorized with the web server flow" -A 2
You have to re-authenticate your orgs using web flow:
sfdx force:auth:web:login -h
If this is the case, please comment and close the issue.
@baksale Not sure about @fransf-wtax's use case, but I'd definitely appreciate being able to get a refresh token without having to go through a JWT or web login flow.
@Julian88Tex with auth url for your org you will not need to refresh any tokens - the action will just work.
Below operations needs to be done for THE_ORG just once:
sfdx force:org:display -u THE_ORG --verbose --json
It will work THE_ORG going further.
The issue guys mentioned earlier most likely due to THE_ORG was authorized via jwt flow.
@baksale thanks yes I realize that however I am actually trying to obtain a refresh token so that I can use it as an authentication method for some CI/CD processes
The README says:
However, running this command on my prod org gives the following output:
I don't see any URL containing a refresh token, or the refresh token itself. Perhaps the README instructions are outdated?