Jump to content

Invalid scope - oauth authorization issue


Recommended Posts

I am getting this error when I try to get an access_token from the IPS oAuth server:

{
    "name": "AuthorizationError",
    "code": "invalid_scope",
    "status": 500
}

I didn't find any official documentation on this and it would be great if someone gave me the link. The URL I'm requesting for is this (confidential data has been hidden with XXX-XXX😞

https://example.com/oauth/authorize?response_type=code&redirect_uri=example.com&scope=authorization_code&client_id=XXX-XXX

 

Screenshot_172.thumb.png.e213a12315e8030bac8af035d48586f9.png

What am I doing wrong?

Link to comment
Share on other sites

It’s merely telling you the scope you are requesting, authorization_code, is not a valid scope. Although I cannot tell which OAuth provider you are using, I’m guessing authorization_code isn’t a valid scope. I’ve never seen that before. Typically scopes correspond with resources you want access to such as profile, email, user, openid etc. 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...