public class TwitterIdentityProvider extends AbstractIdentityProvider<OAuth2IdentityProviderConfig> implements SocialIdentityProvider<OAuth2IdentityProviderConfig>
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 |
Constructor and Description |
---|
TwitterIdentityProvider(OAuth2IdentityProviderConfig 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.
|
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. |
attachUserSession, backchannelLogout, close, export, getConfig, getMarshaller, importNewUser, keycloakInitiatedBrowserLogout, preprocessFederatedIdentity, updateBrokeredUser
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
attachUserSession, backchannelLogout, export, getMarshaller, importNewUser, keycloakInitiatedBrowserLogout, preprocessFederatedIdentity, updateBrokeredUser
public TwitterIdentityProvider(OAuth2IdentityProviderConfig config)
public Object callback(RealmModel realm, IdentityProvider.AuthenticationCallback callback, EventBuilder event)
IdentityProvider
callback
in interface IdentityProvider<OAuth2IdentityProviderConfig>
callback
in class AbstractIdentityProvider<OAuth2IdentityProviderConfig>
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<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 retrieveToken(KeycloakSession session, FederatedIdentityModel identity)
IdentityProvider
Returns a Response
containing the token previously stored during the authentication process for a
specific user.
retrieveToken
in interface IdentityProvider<OAuth2IdentityProviderConfig>
Copyright © 2016 JBoss by Red Hat. All rights reserved.