public class FacebookIdentityProvider extends AbstractOAuth2IdentityProvider<FacebookIdentityProviderConfig> implements SocialIdentityProvider<FacebookIdentityProviderConfig>
AbstractOAuth2IdentityProvider.Endpoint
IdentityProvider.AuthenticationCallback
Modifier and Type | Field and Description |
---|---|
static String |
AUTH_URL |
static String |
DEFAULT_SCOPE |
static String |
PROFILE_URL |
protected static String |
PROFILE_URL_FIELDS_SEPARATOR |
static String |
TOKEN_URL |
ACCESS_DENIED, FEDERATED_REFRESH_TOKEN, FEDERATED_TOKEN_EXPIRATION, logger, mapper, OAUTH2_GRANT_TYPE_AUTHORIZATION_CODE, OAUTH2_GRANT_TYPE_REFRESH_TOKEN, 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
ACCOUNT_LINK_URL, session
EXTERNAL_IDENTITY_PROVIDER, FEDERATED_ACCESS_TOKEN
Constructor and Description |
---|
FacebookIdentityProvider(KeycloakSession session,
FacebookIdentityProviderConfig config) |
Modifier and Type | Method and Description |
---|---|
protected BrokeredIdentityContext |
doGetFederatedIdentity(String accessToken) |
protected BrokeredIdentityContext |
extractIdentityFromProfile(EventBuilder event,
com.fasterxml.jackson.databind.JsonNode profile) |
protected String |
getDefaultScopes() |
protected String |
getProfileEndpointForValidation(EventBuilder event) |
protected boolean |
supportsExternalExchange() |
asJsonNode, authenticateTokenRequest, authenticationFinished, buildUserInfoRequest, callback, createAuthorizationUrl, exchangeExternal, exchangeExternalComplete, exchangeExternalImpl, exchangeExternalUserInfoValidationOnly, exchangeFromToken, exchangeSessionToken, exchangeStoredToken, extractTokenFromResponse, generateToken, getAccessTokenResponseParameter, getConfig, getFederatedIdentity, getJsonProperty, getSignatureContext, hasExternalExchangeToken, isIssuer, performLogin, retrieveToken, validateExternalTokenThroughUserInfo
backchannelLogout, close, exchangeErrorResponse, exchangeNotLinked, exchangeNotLinkedNoStore, exchangeNotSupported, exchangeTokenExpired, exchangeUnsupportedRequiredType, export, getLinkingUrl, getMarshaller, importNewUser, keycloakInitiatedBrowserLogout, preprocessFederatedIdentity, updateBrokeredUser
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
authenticationFinished, backchannelLogout, callback, export, getMarshaller, importNewUser, keycloakInitiatedBrowserLogout, performLogin, preprocessFederatedIdentity, retrieveToken, updateBrokeredUser
public static final String AUTH_URL
public static final String TOKEN_URL
public static final String PROFILE_URL
public static final String DEFAULT_SCOPE
protected static final String PROFILE_URL_FIELDS_SEPARATOR
public FacebookIdentityProvider(KeycloakSession session, FacebookIdentityProviderConfig config)
protected BrokeredIdentityContext doGetFederatedIdentity(String accessToken)
doGetFederatedIdentity
in class AbstractOAuth2IdentityProvider<FacebookIdentityProviderConfig>
protected boolean supportsExternalExchange()
supportsExternalExchange
in class AbstractOAuth2IdentityProvider<FacebookIdentityProviderConfig>
protected String getProfileEndpointForValidation(EventBuilder event)
getProfileEndpointForValidation
in class AbstractOAuth2IdentityProvider<FacebookIdentityProviderConfig>
protected BrokeredIdentityContext extractIdentityFromProfile(EventBuilder event, com.fasterxml.jackson.databind.JsonNode profile)
extractIdentityFromProfile
in class AbstractOAuth2IdentityProvider<FacebookIdentityProviderConfig>
protected String getDefaultScopes()
getDefaultScopes
in class AbstractOAuth2IdentityProvider<FacebookIdentityProviderConfig>
Copyright © 2020 JBoss by Red Hat. All rights reserved.