You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a problem with the GitHub example. When selecting multiple scopes, which happens by default in that example, only the last scope is actually requested to the API. This happens because of the way the auth URL is generated.
https://github.com/login/oauth/authorize?redirect_uri={uri}&scope[]=repo&scope[]=user&state={state} (using the array notation for keys with multiple values).
I've created a pull request on the package that is being used to generate the query strings, so I guess the next step is to see if that is merged in.
The text was updated successfully, but these errors were encountered:
According to the GitHub v3 docs isn't scope supposed to be in one query param comma separated? I typically see this pattern of a single scope param, but with different delimiters (i.e. Runscope's API uses spaces between scopes)
There's a problem with the GitHub example. When selecting multiple scopes, which happens by default in that example, only the last scope is actually requested to the API. This happens because of the way the auth URL is generated.
The URL generated is:
https://github.com/login/oauth/authorize?redirect_uri={uri}&scope=repo&scope=user&state={state}
But it should be:
https://github.com/login/oauth/authorize?redirect_uri={uri}&scope[]=repo&scope[]=user&state={state}
(using the array notation for keys with multiple values).I've created a pull request on the package that is being used to generate the query strings, so I guess the next step is to see if that is merged in.
The text was updated successfully, but these errors were encountered: