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
4.1.1. Authorization Request lists redirect_uri as OPTIONAL
4.1.3. Access Token Request lists redirect_uri only as REQUIRED if it was supplied in the authorization request
3.1.2.3. Dynamic Configuration clarifies that only if no redirection URI has been registered for the client, a redirect_uri MUST be included in the authorization request. (When aredirect_uri is included in an authorization request, the authorization server MUST compare and match the value received against at least one of the registered redirection URIs)
3.1.2.2. Registration Requirements specifies that public clients MUST specify their redirect endpoint upon registration.
In fact, OpenStreetMap currently enforces that any client, even confidential ones, have to specify (at least one) redirect uri upon registration:
The text was updated successfully, but these errors were encountered:
westnordost
changed the title
OAuth 2: requiring rederict_uri is not compliant to RFC 6749
OAuth 2: requiring redirect_uri is not compliant to RFC 6749
Nov 22, 2023
OAuth 2 is implemented by doorkeeper so unless you have some evidence that this is an issue with the way we have configured it then it's a matter for them not us.
Reproduction
When making a an OAuth2 authorization request, omit the
redirect_uri
. E.g. open https://master.apis.dev.openstreetmap.org/oauth2/authorize?response_type=code&client_id=nOkiqW1fUHssu_e0Qbk6yLx7659s19CUx3nGmOP5JZk&scope=read_prefs in the browserAuthorization server responds with "The requested redirect uri is malformed or doesn't match client redirect URI."
Description
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 only if no redirection URI has been registered for the client, a
redirect_uri
MUST be included in the authorization request. (When aredirect_uri
is included in an authorization request, the authorization server MUST compare and match the value received against at least one of the registered redirection URIs)3.1.2.2. Registration Requirements specifies that public clients MUST specify their redirect endpoint upon registration.
In fact, OpenStreetMap currently enforces that any client, even confidential ones, have to specify (at least one) redirect uri upon registration:
The text was updated successfully, but these errors were encountered: