public class OIDCIdentityProvider extends AbstractOAuth2IdentityProvider<OIDCIdentityProviderConfig>
| Modifier and Type | Class and Description |
|---|---|
protected class |
OIDCIdentityProvider.OIDCEndpoint |
AbstractOAuth2IdentityProvider.EndpointIdentityProvider.AuthenticationCallback| Modifier and Type | Field and Description |
|---|---|
static String |
FEDERATED_ID_TOKEN |
protected static org.jboss.logging.Logger |
logger |
static String |
OAUTH2_PARAMETER_PROMPT |
static String |
SCOPE_OPENID |
FEDERATED_ACCESS_TOKEN, FEDERATED_REFRESH_TOKEN, FEDERATED_TOKEN_EXPIRATION, mapper, OAUTH2_GRANT_TYPE_AUTHORIZATION_CODE, OAUTH2_PARAMETER_ACCESS_TOKEN, OAUTH2_PARAMETER_CLIENT_ID, OAUTH2_PARAMETER_CLIENT_SECRET, OAUTH2_PARAMETER_CODE, OAUTH2_PARAMETER_GRANT_TYPE, OAUTH2_PARAMETER_REDIRECT_URI, OAUTH2_PARAMETER_RESPONSE_TYPE, OAUTH2_PARAMETER_SCOPE, OAUTH2_PARAMETER_STATE| Constructor and Description |
|---|
OIDCIdentityProvider(OIDCIdentityProviderConfig config) |
| Modifier and Type | Method and Description |
|---|---|
Object |
callback(RealmModel realm,
IdentityProvider.AuthenticationCallback callback,
EventBuilder event)
JAXRS callback endpoint for when the remote IDP wants to callback to keycloak.
|
protected javax.ws.rs.core.UriBuilder |
createAuthorizationUrl(AuthenticationRequest request) |
protected String |
getDefaultScopes() |
protected PublicKey |
getExternalIdpKey() |
protected FederatedIdentity |
getFederatedIdentity(Map<String,String> notes,
String response) |
javax.ws.rs.core.Response |
keycloakInitiatedBrowserLogout(UserSessionModel userSession,
javax.ws.rs.core.UriInfo uriInfo,
RealmModel realm)
Called when a Keycloak application initiates a logout through the browser.
|
protected boolean |
verify(JWSInput jws,
PublicKey key) |
asJsonNode, doGetFederatedIdentity, extractTokenFromResponse, getConfig, getJsonProperty, handleRequest, retrieveTokenclose, exportprotected static final org.jboss.logging.Logger logger
public static final String OAUTH2_PARAMETER_PROMPT
public static final String SCOPE_OPENID
public static final String FEDERATED_ID_TOKEN
public OIDCIdentityProvider(OIDCIdentityProviderConfig config)
public Object callback(RealmModel realm, IdentityProvider.AuthenticationCallback callback, EventBuilder event)
IdentityProvidercallback in interface IdentityProvider<OIDCIdentityProviderConfig>callback in class AbstractOAuth2IdentityProvider<OIDCIdentityProviderConfig>protected PublicKey getExternalIdpKey()
public javax.ws.rs.core.Response keycloakInitiatedBrowserLogout(UserSessionModel userSession, javax.ws.rs.core.UriInfo uriInfo, RealmModel realm)
IdentityProviderkeycloakInitiatedBrowserLogout in interface IdentityProvider<OIDCIdentityProviderConfig>keycloakInitiatedBrowserLogout in class AbstractIdentityProvider<OIDCIdentityProviderConfig>protected javax.ws.rs.core.UriBuilder createAuthorizationUrl(AuthenticationRequest request)
createAuthorizationUrl in class AbstractOAuth2IdentityProvider<OIDCIdentityProviderConfig>protected FederatedIdentity getFederatedIdentity(Map<String,String> notes, String response)
getFederatedIdentity in class AbstractOAuth2IdentityProvider<OIDCIdentityProviderConfig>protected String getDefaultScopes()
getDefaultScopes in class AbstractOAuth2IdentityProvider<OIDCIdentityProviderConfig>Copyright © 2015. All rights reserved.