public class SAMLIdentityProvider extends AbstractIdentityProvider<SAMLIdentityProviderConfig>
IdentityProvider.AuthenticationCallback| Modifier and Type | Field and Description |
|---|---|
protected static org.jboss.logging.Logger |
logger |
| Constructor and Description |
|---|
SAMLIdentityProvider(SAMLIdentityProviderConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
attachUserSession(UserSessionModel userSession,
ClientSessionModel clientSession,
BrokeredIdentityContext context) |
void |
backchannelLogout(KeycloakSession session,
UserSessionModel userSession,
javax.ws.rs.core.UriInfo uriInfo,
RealmModel realm) |
protected SAML2LogoutRequestBuilder |
buildLogoutRequest(UserSessionModel userSession,
javax.ws.rs.core.UriInfo uriInfo,
RealmModel realm,
String singleLogoutServiceUrl) |
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, getConfig, importNewUser, preprocessFederatedIdentity, updateBrokeredUserpublic SAMLIdentityProvider(SAMLIdentityProviderConfig config)
public Object callback(RealmModel realm, IdentityProvider.AuthenticationCallback callback, EventBuilder event)
IdentityProvidercallback in interface IdentityProvider<SAMLIdentityProviderConfig>callback in class AbstractIdentityProvider<SAMLIdentityProviderConfig>public javax.ws.rs.core.Response performLogin(AuthenticationRequest request)
IdentityProviderInitiates 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 attachUserSession(UserSessionModel userSession, ClientSessionModel clientSession, BrokeredIdentityContext context)
attachUserSession in interface IdentityProvider<SAMLIdentityProviderConfig>attachUserSession in class AbstractIdentityProvider<SAMLIdentityProviderConfig>public javax.ws.rs.core.Response retrieveToken(KeycloakSession session, FederatedIdentityModel identity)
IdentityProviderReturns 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)
IdentityProviderkeycloakInitiatedBrowserLogout in interface IdentityProvider<SAMLIdentityProviderConfig>keycloakInitiatedBrowserLogout in class AbstractIdentityProvider<SAMLIdentityProviderConfig>protected SAML2LogoutRequestBuilder buildLogoutRequest(UserSessionModel userSession, javax.ws.rs.core.UriInfo uriInfo, RealmModel realm, String singleLogoutServiceUrl)
public javax.ws.rs.core.Response export(javax.ws.rs.core.UriInfo uriInfo,
RealmModel realm,
String format)
IdentityProviderexport in interface IdentityProvider<SAMLIdentityProviderConfig>export in class AbstractIdentityProvider<SAMLIdentityProviderConfig>public SignatureAlgorithm getSignatureAlgorithm()
public IdentityProviderDataMarshaller getMarshaller()
IdentityProvidergetMarshaller in interface IdentityProvider<SAMLIdentityProviderConfig>getMarshaller in class AbstractIdentityProvider<SAMLIdentityProviderConfig>Copyright © 2016 JBoss by Red Hat. All rights reserved.