-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Always requiring redirect_uri
is not compliant to RFC 6749
#1678
Comments
Note that in the draft OAuth 2.1 specification,
(see https://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-1-09#section-10.2-2) |
What I was thinking about is: Access Token Request always have to check |
Also keep in mind that removing the Most likely we should enable PKCE by default now, and warn if it is not enabled. (OAuth 2.1 also deprecates a lot of things, like Implicit and Resource Owner Password Grant flows) |
It looks like doorkeeper always requires the
redirect_uri
parameter to be set in authorization requests.doorkeeper/lib/doorkeeper/oauth/pre_authorization.rb
Lines 100 to 107 in 9fc81d5
This does not seem to be compliant to RFC 6749 - The OAuth 2.0 Authorization Framework:
4.1.1. Authorization Request lists
redirect_uri
as OPTIONAL4.1.3. Access Token Request lists
redirect_uri
only as REQUIRED if it was supplied in the authorization request3.1.2.3. Dynamic Configuration clarifies that
redirect_uri
is REQUIRED only in case no redirection URI has been specified during client registration:I understand that by default, doorkeeper also does not allow leaving the redirect url blank during client registration (but it can be changed in the configuration).
Expected behavior
redirect_uri
parameter is optional in the authorization requestredirect_uri
parameter is only required in the access token request if it was specified in the authorization request. In this case, it must matchActual behavior
redirect_uri
parameter is always required in the authorization request and access token requestRelated
redirect_uri
is not compliant to RFC 6749 openstreetmap/openstreetmap-website#4363The text was updated successfully, but these errors were encountered: