Class ClientCredentialsGrantType
java.lang.Object
org.keycloak.protocol.oidc.grants.OAuth2GrantTypeBase
org.keycloak.protocol.oidc.grants.ClientCredentialsGrantType
- All Implemented Interfaces:
OAuth2GrantType,Provider
OAuth 2.0 Client Credentials Grant
https://datatracker.ietf.org/doc/html/rfc6749#section-4.4
- Author:
- Dmitry Telegin (et al.)
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.protocol.oidc.grants.OAuth2GrantType
OAuth2GrantType.Context -
Field Summary
Fields 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 TypeMethodDescriptionReturns the event type associated with this OAuth 2.0 grant type.Name of the "token" parameters, which this grant type supports.booleanjakarta.ws.rs.core.Responseprocess(OAuth2GrantType.Context context) Processes grant request.protected booleanMethods inherited from class org.keycloak.protocol.oidc.grants.OAuth2GrantTypeBase
addCustomTokenResponseClaims, afterAuthorizationDetailsProcessed, checkAndBindMtlsHoKToken, checkClient, close, createTokenResponse, createTokenResponse, createTokenResponseBuilder, getRequestedScopes, handleMissingAuthorizationDetails, processAuthorizationDetails, processStoredAuthorizationDetails, 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, preProcess
-
Constructor Details
-
ClientCredentialsGrantType
public ClientCredentialsGrantType()
-
-
Method Details
-
isConfidentialOnlyGrantType
public boolean isConfidentialOnlyGrantType()- Specified by:
isConfidentialOnlyGrantTypein interfaceOAuth2GrantType- Overrides:
isConfidentialOnlyGrantTypein classOAuth2GrantTypeBase- Returns:
- true if the grant type is intended to be used only by confidential clients.
-
process
Description copied from interface:OAuth2GrantTypeProcesses grant request.- Parameters:
context- grant request context- Returns:
- token response
-
getEventType
Description copied from interface:OAuth2GrantTypeReturns the event type associated with this OAuth 2.0 grant type.- Returns:
- event type
-
getTokenParameterNames
Description copied from interface:OAuth2GrantTypeName of the "token" parameters, which this grant type supports. As 'token' parameter is considered a parameter containing possibly long token (for example big JWT or SAML assertion) with unbounded data (For example possibly big amount of roles inside JWT). Example of such parameter is for example 'subject_token' parameter case of token exchange grant.- Returns:
- set of strings with the "token" parameters supported by this grant type
-
useRefreshToken
protected boolean useRefreshToken()- Overrides:
useRefreshTokenin classOAuth2GrantTypeBase
-