-
-
Notifications
You must be signed in to change notification settings - Fork 928
Only require 'redirect_uri' in token/authorization_code when one was provided in authorize/code #709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…provided in authorize/code
For reference this is an example of what I think is incorrect: First request a token:
The request that I think is incorrect because I never sent a
The request that actually works as it contains
|
Maybe you are wrong. And check your model on
|
@whatwewant I referenced the relevent comment to the relevent part of the spec in my description. To quote: The Full quote:
|
Hello, due to this project appearing to be dead and no maintainers responding, I went ahead and forked the project under a new organization, and will continue the work over there. https://github.com/node-oauth/node-oauth2-server Feel free to move over there to further the discussion |
This PR is to prevent redirect_uri being saved using saveAuthorizationCode when its not directly requested, this is so that AuthorizationCodeGrantType#validateRedirectUri does not try to validate against the fallback of
client.redirectUris[0]
This is the comment that made me think this makes sense:
https://github.com/oauthjs/node-oauth2-server/blob/master/lib/grant-types/authorization-code-grant-type.js#L125-L134