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
In Keycloak, there are endpoints like OIDC UserInfo and account REST service, which are meant to be accessed by a user and require proper authorization (OAuth 2.0 calls such endpoints "protected resources"). Currently, the only authorization method supported is Bearer. With the upcoming DPoP feature, a new scheme (DPoP) will be introduced; more schemes could come in the future. If we want the features like DPoP to be pluggable and non-intrusive, we should consider a more flexible approach.
Proposal
Introduce Authorization Scheme SPI with the following responsibilities:
parse incoming authorization info (token) from the Authorization header (similar to AppAuthManager::extractTokenStringFromAuthHeader);
validate authorization info (similar to AppAuthManager.BearerTokenAuthenticator);
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.
Motivation
In Keycloak, there are endpoints like OIDC UserInfo and account REST service, which are meant to be accessed by a user and require proper authorization (OAuth 2.0 calls such endpoints "protected resources"). Currently, the only authorization method supported is
Bearer. With the upcoming DPoP feature, a new scheme (DPoP) will be introduced; more schemes could come in the future. If we want the features like DPoP to be pluggable and non-intrusive, we should consider a more flexible approach.Proposal
Introduce Authorization Scheme SPI with the following responsibilities:
Authorizationheader (similar toAppAuthManager::extractTokenStringFromAuthHeader);AppAuthManager.BearerTokenAuthenticator);WWW-Authenticatechallenges;With this SPI, we could have everything related to token authentication in one place, and ensure unified handling across the endpoints.
All reactions