function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ruben VascoRuben Vasco 

<error>invalid_grant</error> <error_description>authentication failure</error_description>


Hola,
Estoy tratando de obtener el token OAuth, pero para realizar la llamada a esta dirección URL.
Https://login.salesforce.com/services/oauth2/token?code=aPrx_ZYMp.FMeHRLdo5zDKt8LmDmMUAbQdtGOwXA7Fx3090LibVRlzPtCgHAksUcZtxeh_WboQ&grant_type=authorization_code&client_id=3MVG98_Psg5cppyY1TGPC_CWww9MhWKxCgDOtg3u0b3eAZxuBQEoWOvCLF8WedagGi8i42Kjgi0v86YI8y&client_secret=655284439636179&redirect_uri=https : //eu6.salesforce.com/services/oauth2/callback
me sale este error:
<error> invalid_grant </ error> <ERROR_DESCRIPTION> error de autenticación </ ERROR_DESCRIPTION>


Si alguien me puede ayudar Gracias. Saludos
 
SandhyaSandhya (Salesforce Developers) 
Hi Ruben Vasco,

Make sure IP restrictions are disabled as well, and make sure that Permitted Users is set to "All users may self-authorize."

Please refer below posts for similar discussion which has different solutions for such error see if that helps you.

http://stackoverflow.com/questions/12794302/salesforce-authentication-failing
 
http://stackoverflow.com/questions/34154385/getting-errorinvalid-grant-error-descriptionauthentication-failure-i
 
https://help.salesforce.com/HTViewHelpDoc?id=remoteaccess_oauth_web_server_flow.htm&language=en_US
 
Hope this helps you!

Please mark it as Best Answer if my reply was helpful. It will make it available for other as the proper solution.
 
Thanks and Regards
Sandhya