public class TwitterIdentityProvider extends AbstractIdentityProvider<OAuth2IdentityProviderConfig> implements SocialIdentityProvider<OAuth2IdentityProviderConfig>, ExchangeTokenToIdentityProviderToken
| Modifier and Type | Class and Description |
|---|---|
protected class |
TwitterIdentityProvider.Endpoint |
IdentityProvider.AuthenticationCallback| Modifier and Type | Field and Description |
|---|---|
protected static org.jboss.logging.Logger |
logger |
ACCOUNT_LINK_URL, sessionEXTERNAL_IDENTITY_PROVIDER, FEDERATED_ACCESS_TOKEN| Constructor and Description |
|---|
TwitterIdentityProvider(KeycloakSession session,
OAuth2IdentityProviderConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticationFinished(AuthenticationSessionModel authSession,
BrokeredIdentityContext context) |
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 |
exchangeFromToken(javax.ws.rs.core.UriInfo uriInfo,
EventBuilder builder,
ClientModel authorizedClient,
UserSessionModel tokenUserSession,
UserModel tokenSubject,
javax.ws.rs.core.MultivaluedMap<String,String> params) |
protected javax.ws.rs.core.Response |
exchangeSessionToken(javax.ws.rs.core.UriInfo uriInfo,
ClientModel authorizedClient,
UserSessionModel tokenUserSession,
UserModel tokenSubject) |
protected javax.ws.rs.core.Response |
exchangeStoredToken(javax.ws.rs.core.UriInfo uriInfo,
ClientModel authorizedClient,
UserSessionModel tokenUserSession,
UserModel tokenSubject) |
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. |
backchannelLogout, close, exchangeErrorResponse, exchangeNotLinked, exchangeNotLinkedNoStore, exchangeNotSupported, exchangeTokenExpired, exchangeUnsupportedRequiredType, export, getConfig, getLinkingUrl, getMarshaller, importNewUser, keycloakInitiatedBrowserLogout, preprocessFederatedIdentity, updateBrokeredUserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbackchannelLogout, export, getMarshaller, importNewUser, keycloakInitiatedBrowserLogout, preprocessFederatedIdentity, updateBrokeredUserpublic TwitterIdentityProvider(KeycloakSession session, OAuth2IdentityProviderConfig config)
public Object callback(RealmModel realm, IdentityProvider.AuthenticationCallback callback, EventBuilder event)
IdentityProvidercallback in interface IdentityProvider<OAuth2IdentityProviderConfig>callback in class AbstractIdentityProvider<OAuth2IdentityProviderConfig>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<OAuth2IdentityProviderConfig>performLogin in class AbstractIdentityProvider<OAuth2IdentityProviderConfig>request - The initial authentication request. Contains all the contextual information in order to build an authentication request to the
identity provider.public javax.ws.rs.core.Response exchangeFromToken(javax.ws.rs.core.UriInfo uriInfo,
EventBuilder builder,
ClientModel authorizedClient,
UserSessionModel tokenUserSession,
UserModel tokenSubject,
javax.ws.rs.core.MultivaluedMap<String,String> params)
exchangeFromToken in interface ExchangeTokenToIdentityProviderTokenauthorizedClient - client requesting exchangetokenUserSession - UserSessionModel of token exchanging fromtokenSubject - UserModel of token exchanging fromparams - form parameters received for requested exchangeprotected javax.ws.rs.core.Response exchangeStoredToken(javax.ws.rs.core.UriInfo uriInfo,
ClientModel authorizedClient,
UserSessionModel tokenUserSession,
UserModel tokenSubject)
protected javax.ws.rs.core.Response exchangeSessionToken(javax.ws.rs.core.UriInfo uriInfo,
ClientModel authorizedClient,
UserSessionModel tokenUserSession,
UserModel tokenSubject)
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.
retrieveToken in interface IdentityProvider<OAuth2IdentityProviderConfig>public void authenticationFinished(AuthenticationSessionModel authSession, BrokeredIdentityContext context)
authenticationFinished in interface IdentityProvider<OAuth2IdentityProviderConfig>authenticationFinished in class AbstractIdentityProvider<OAuth2IdentityProviderConfig>Copyright © 2021 JBoss by Red Hat. All rights reserved.