-
-
Notifications
You must be signed in to change notification settings - Fork 935
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
Incorrect handling of user "denial" in AuthorizeHandler.prototype.handle #456
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
According to https://tools.ietf.org/html/rfc6749#section-4.1.2.1, the access_denied scenario should produce a redirect_uri (if valid) with appropriate "error" params set. Currently, however, the access ("request.query.allowed") is checked before validating the input params, including the redirect_uri, and throws an exception instead.
https://github.com/oauthjs/node-oauth2-server/blob/master/lib/handlers/authorize-handler.js#L81
The text was updated successfully, but these errors were encountered: