Class AuthorizationEndpointChecker
java.lang.Object
org.keycloak.protocol.oidc.endpoints.AuthorizationEndpointChecker
Implements some checks typical for OIDC Authorization Endpoint. Useful to consolidate various checks on single place to avoid duplicated
code logic in different contexts (OIDC Authorization Endpoint triggered from browser, PAR)
- Author:
- Marek Posolda
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidclient(ClientModel client) event(EventBuilder event) getRealm()booleanrealm(RealmModel realm) request(AuthorizationEndpointRequest request) session(KeycloakSession session) voidthrowAsCorsErrorResponseException(Cors cors, AuthorizationEndpointChecker.AuthorizationCheckException ex) voidthrowAsErrorPageException(AuthenticationSessionModel authenticationSession, AuthorizationEndpointChecker.AuthorizationCheckException ex)
-
Constructor Details
-
AuthorizationEndpointChecker
public AuthorizationEndpointChecker()
-
-
Method Details
-
event
-
request
-
session
-
client
-
realm
-
params
-
getAuthorizationEndpointRequest
-
getClient
-
getEventBuilder
-
getRealm
-
getQueryParams
-
getRedirectUri
-
getParsedResponseType
-
getParsedResponseMode
-
checkRedirectUri
-
checkResponseType
-
isInvalidResponseType
-
checkInvalidRequestMessage
public void checkInvalidRequestMessage() throws AuthorizationEndpointChecker.AuthorizationCheckException -
checkOIDCRequest
public void checkOIDCRequest() -
checkAuthorizationDetails
public void checkAuthorizationDetails() throws AuthorizationEndpointChecker.AuthorizationCheckException -
checkValidScope
-
checkValidResource
-
checkOIDCParams
-
checkPKCEParams
-
checkParRequired
-
checkParDPoPParams
-
checkProviderAddOns
-
throwAsErrorPageException
public void throwAsErrorPageException(AuthenticationSessionModel authenticationSession, AuthorizationEndpointChecker.AuthorizationCheckException ex) -
throwAsCorsErrorResponseException
public void throwAsCorsErrorResponseException(Cors cors, AuthorizationEndpointChecker.AuthorizationCheckException ex)
-