4

I'm trying to get Refresh Token as part of scope but I'm getting following error

error=invalid_scope&error_description=the%20requested%20scope%20is%20not%20available

This is my request

https://login.salesforce.com/services/oauth2/authorize?client_id=****68p.bUv86t9&redirect_uri=https%3A%2F%2F******-developer-edition.na12.force.com%2Fredirect_uri&response_type=token&scope=full%20refresh_token

My connected App Settings,

Selected OAuth Scopes
Full access (full) Perform requests on your behalf at any time (refresh_token, offline_access

Any help? , Thanks

  • 1
    I'm assuming the refersh_token is available only for Web Server flow and not User Agent flow of OAuth? can someone confirm it? I get refresh token for web server flow though. – realnumber Dec 11 '14 at 17:19
  • 1
    scope= refersh_token Allows a refresh token to be returned if you are eligible to receive one. This lets the app interact with the user’s data while the user is offline, and is synonymous with requesting offline_access. – BruceYue Jan 15 '15 at 10:11
  • I have selected all scope values from connected app setting but still not able to receive it. – realnumber Jan 19 '15 at 15:59
  • based on the help, user agent should be able to get back a refresh token: help.salesforce.com/… – BritishBoyinDC Jul 25 '18 at 12:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.