Class PreAuthorizedCodeGrantType
java.lang.Object
org.keycloak.protocol.oidc.grants.OAuth2GrantTypeBase
org.keycloak.protocol.oidc.grants.PreAuthorizedCodeGrantType
- All Implemented Interfaces:
OAuth2GrantType,Provider
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.protocol.oidc.grants.OAuth2GrantType
OAuth2GrantType.Context -
Field Summary
FieldsFields inherited from class org.keycloak.protocol.oidc.grants.OAuth2GrantTypeBase
client, clientAuthAttributes, clientConfig, clientConnection, context, cors, event, formParams, headers, realm, request, response, session, tokenManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetPreAuthorizedCode(KeycloakSession session, AuthenticatedClientSessionModel authenticatedClientSession, int expirationTime) Create a pre-authorized Code for the given client session.jakarta.ws.rs.core.Responseprocess(OAuth2GrantType.Context context) Methods inherited from class org.keycloak.protocol.oidc.grants.OAuth2GrantTypeBase
checkAndBindMtlsHoKToken, checkClient, close, createTokenResponse, getRequestedScopes, setContext, updateClientSession, updateUserSessionFromClientAuthMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.protocol.oidc.grants.OAuth2GrantType
getSupportedMultivaluedRequestParameters
-
Field Details
-
VC_ISSUANCE_FLOW
- See Also:
-
-
Constructor Details
-
PreAuthorizedCodeGrantType
public PreAuthorizedCodeGrantType()
-
-
Method Details
-
process
-
getEventType
-
getPreAuthorizedCode
public static String getPreAuthorizedCode(KeycloakSession session, AuthenticatedClientSessionModel authenticatedClientSession, int expirationTime) Create a pre-authorized Code for the given client session.- Parameters:
session- - keycloak session to be usedauthenticatedClientSession- - client session to be persistedexpirationTime- - expiration time of the code, the code should be short-lived- Returns:
- the pre-authorized code
-