Class TokenEndpoint
- java.lang.Object
-
- org.keycloak.protocol.oidc.endpoints.TokenEndpoint
-
public class TokenEndpoint extends Object
- Author:
- Stian Thorgersen
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TokenEndpoint.TokenExchangeSamlProtocol
-
Constructor Summary
Constructors Constructor Description TokenEndpoint(KeycloakSession session, TokenManager tokenManager, EventBuilder event)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
cibaGrant()
javax.ws.rs.core.Response
clientCredentialsGrant()
javax.ws.rs.core.Response
codeToToken()
javax.ws.rs.core.Response
createTokenResponse(UserModel user, UserSessionModel userSession, ClientSessionContext clientSessionCtx, String scopeParam, boolean code, Function<TokenManager.AccessTokenResponseBuilder,ClientPolicyContext> clientPolicyContextGenerator)
Object
introspect()
javax.ws.rs.core.Response
oauth2DeviceCodeToToken()
javax.ws.rs.core.Response
permissionGrant()
javax.ws.rs.core.Response
preflight()
javax.ws.rs.core.Response
processGrantRequest()
javax.ws.rs.core.Response
refreshTokenGrant()
javax.ws.rs.core.Response
resourceOwnerPasswordCredentialsGrant()
javax.ws.rs.core.Response
tokenExchange()
-
-
-
Constructor Detail
-
TokenEndpoint
public TokenEndpoint(KeycloakSession session, TokenManager tokenManager, EventBuilder event)
-
-
Method Detail
-
processGrantRequest
@Consumes("application/x-www-form-urlencoded") @POST public javax.ws.rs.core.Response processGrantRequest()
-
introspect
@Path("introspect") public Object introspect()
-
preflight
@OPTIONS public javax.ws.rs.core.Response preflight()
-
codeToToken
public javax.ws.rs.core.Response codeToToken()
-
createTokenResponse
public javax.ws.rs.core.Response createTokenResponse(UserModel user, UserSessionModel userSession, ClientSessionContext clientSessionCtx, String scopeParam, boolean code, Function<TokenManager.AccessTokenResponseBuilder,ClientPolicyContext> clientPolicyContextGenerator)
-
refreshTokenGrant
public javax.ws.rs.core.Response refreshTokenGrant()
-
resourceOwnerPasswordCredentialsGrant
public javax.ws.rs.core.Response resourceOwnerPasswordCredentialsGrant()
-
clientCredentialsGrant
public javax.ws.rs.core.Response clientCredentialsGrant()
-
tokenExchange
public javax.ws.rs.core.Response tokenExchange()
-
permissionGrant
public javax.ws.rs.core.Response permissionGrant()
-
oauth2DeviceCodeToToken
public javax.ws.rs.core.Response oauth2DeviceCodeToToken()
-
cibaGrant
public javax.ws.rs.core.Response cibaGrant()
-
-