public class SAMLIdentityProvider extends AbstractIdentityProvider<SAMLIdentityProviderConfig>
IdentityProvider.AuthenticationCallback
Modifier and Type | Field and Description |
---|---|
protected static org.jboss.logging.Logger |
logger |
ACCOUNT_LINK_URL, session
EXTERNAL_IDENTITY_PROVIDER, FEDERATED_ACCESS_TOKEN
Constructor and Description |
---|
SAMLIdentityProvider(KeycloakSession session,
SAMLIdentityProviderConfig config,
DestinationValidator destinationValidator) |
Modifier and Type | Method and Description |
---|---|
void |
authenticationFinished(AuthenticationSessionModel authSession,
BrokeredIdentityContext context) |
void |
backchannelLogout(KeycloakSession session,
UserSessionModel userSession,
javax.ws.rs.core.UriInfo uriInfo,
RealmModel realm) |
protected LogoutRequestType |
buildLogoutRequest(UserSessionModel userSession,
javax.ws.rs.core.UriInfo uriInfo,
RealmModel realm,
String singleLogoutServiceUrl,
SamlProtocolExtensionsAwareBuilder.NodeGenerator... extensions) |
Object |
callback(RealmModel realm,
IdentityProvider.AuthenticationCallback callback,
EventBuilder event)
JAXRS callback endpoint for when the remote IDP wants to callback to keycloak.
|
javax.ws.rs.core.Response |
export(javax.ws.rs.core.UriInfo uriInfo,
RealmModel realm,
String format)
Export a representation of the IdentityProvider in a specific format.
|
IdentityProviderDataMarshaller |
getMarshaller()
Implementation of marshaller to serialize/deserialize attached data to Strings, which can be saved in clientSession
|
SignatureAlgorithm |
getSignatureAlgorithm() |
javax.ws.rs.core.Response |
keycloakInitiatedBrowserLogout(KeycloakSession session,
UserSessionModel userSession,
javax.ws.rs.core.UriInfo uriInfo,
RealmModel realm)
Called when a Keycloak application initiates a logout through the browser.
|
javax.ws.rs.core.Response |
performLogin(AuthenticationRequest request)
Initiates the authentication process by sending an authentication request to an identity provider.
|
javax.ws.rs.core.Response |
retrieveToken(KeycloakSession session,
FederatedIdentityModel identity)
Returns a
Response containing the token previously stored during the authentication process for a
specific user. |
close, exchangeErrorResponse, exchangeNotLinked, exchangeNotLinkedNoStore, exchangeNotSupported, exchangeTokenExpired, exchangeUnsupportedRequiredType, getConfig, getLinkingUrl, importNewUser, preprocessFederatedIdentity, updateBrokeredUser
public SAMLIdentityProvider(KeycloakSession session, SAMLIdentityProviderConfig config, DestinationValidator destinationValidator)
public Object callback(RealmModel realm, IdentityProvider.AuthenticationCallback callback, EventBuilder event)
IdentityProvider
callback
in interface IdentityProvider<SAMLIdentityProviderConfig>
callback
in class AbstractIdentityProvider<SAMLIdentityProviderConfig>
public javax.ws.rs.core.Response performLogin(AuthenticationRequest request)
IdentityProvider
Initiates the authentication process by sending an authentication request to an identity provider. This method is called only once during the authentication.
performLogin
in interface IdentityProvider<SAMLIdentityProviderConfig>
performLogin
in class AbstractIdentityProvider<SAMLIdentityProviderConfig>
request
- The initial authentication request. Contains all the contextual information in order to build an authentication request to the
identity provider.public void authenticationFinished(AuthenticationSessionModel authSession, BrokeredIdentityContext context)
authenticationFinished
in interface IdentityProvider<SAMLIdentityProviderConfig>
authenticationFinished
in class AbstractIdentityProvider<SAMLIdentityProviderConfig>
public javax.ws.rs.core.Response retrieveToken(KeycloakSession session, FederatedIdentityModel identity)
IdentityProvider
Returns a Response
containing the token previously stored during the authentication process for a
specific user.
public void backchannelLogout(KeycloakSession session, UserSessionModel userSession, javax.ws.rs.core.UriInfo uriInfo, RealmModel realm)
backchannelLogout
in interface IdentityProvider<SAMLIdentityProviderConfig>
backchannelLogout
in class AbstractIdentityProvider<SAMLIdentityProviderConfig>
public javax.ws.rs.core.Response keycloakInitiatedBrowserLogout(KeycloakSession session, UserSessionModel userSession, javax.ws.rs.core.UriInfo uriInfo, RealmModel realm)
IdentityProvider
keycloakInitiatedBrowserLogout
in interface IdentityProvider<SAMLIdentityProviderConfig>
keycloakInitiatedBrowserLogout
in class AbstractIdentityProvider<SAMLIdentityProviderConfig>
protected LogoutRequestType buildLogoutRequest(UserSessionModel userSession, javax.ws.rs.core.UriInfo uriInfo, RealmModel realm, String singleLogoutServiceUrl, SamlProtocolExtensionsAwareBuilder.NodeGenerator... extensions) throws ConfigurationException
ConfigurationException
public javax.ws.rs.core.Response export(javax.ws.rs.core.UriInfo uriInfo, RealmModel realm, String format)
IdentityProvider
export
in interface IdentityProvider<SAMLIdentityProviderConfig>
export
in class AbstractIdentityProvider<SAMLIdentityProviderConfig>
public SignatureAlgorithm getSignatureAlgorithm()
public IdentityProviderDataMarshaller getMarshaller()
IdentityProvider
getMarshaller
in interface IdentityProvider<SAMLIdentityProviderConfig>
getMarshaller
in class AbstractIdentityProvider<SAMLIdentityProviderConfig>
Copyright © 2020 JBoss by Red Hat. All rights reserved.