I followed this article (JWT Flow Authorization) but I am getting the following error:
Error: Error retrieving access token:
{"error":"invalid_grant","error_description":"user hasn't approved this
consumer"}
The command I'm trying to run is:
cci task run robot \
--org myOrgName \
--vars BROWSER:headlesschrome \
--suites ./mytestsuite.robot
Does anybody know what I might be missing?
Highlights:
- I have the variable
CUMULUSCI_ORG_myOrgName
defined; - The connected app is already being used by the sfdx cli;
- I have added the full scope to the connected app;
- The SFDX_AUDIENCE_URL is defined