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
While integrating Pushed Authorization Requests (PAR) with Keycloak, I noticed that the client setting “Request Object Required” is applied to the PAR endpoint in the same way as it is to the authorization endpoint.
This raises a question about RFC 9126 compliance and intended behavior.
Background
According to RFC 9126 §2.1 (Pushed Authorization Requests):
The PAR endpoint:
Receives authorization request parameters via a direct POST
MUST NOT accept the request_uri parameter
MAY include a request object, but it is not required by the spec
The request_uri authorization request parameter is one exception, and it MUST NOT be provided.
At the same time, Keycloak client configuration allows enforcing:
not required
request only
request_uri only
request or request_uri
These policies make sense for the authorization endpoint, but appear problematic when applied to PAR.
Example
In my local Keycloak instance, I configured the following settings:
After applying these settings, I sent the following Pushed Authorization Request (PAR):
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
While integrating Pushed Authorization Requests (PAR) with Keycloak, I noticed that the client setting “Request Object Required” is applied to the PAR endpoint in the same way as it is to the authorization endpoint.
This raises a question about RFC 9126 compliance and intended behavior.
Background
According to RFC 9126 §2.1 (Pushed Authorization Requests):
The PAR endpoint:
At the same time, Keycloak client configuration allows enforcing:
These policies make sense for the authorization endpoint, but appear problematic when applied to PAR.
Example
In my local Keycloak instance, I configured the following settings:
After applying these settings, I sent the following Pushed Authorization Request (PAR):
The server responds with the following error:
Discussion Points
I’d like to get feedback from the community and maintainers on:
Beta Was this translation helpful? Give feedback.
All reactions