Package org.keycloak.social.paypal
Class PayPalIdentityProvider
- java.lang.Object
- 
- org.keycloak.broker.provider.AbstractIdentityProvider<C>
- 
- org.keycloak.broker.oidc.AbstractOAuth2IdentityProvider<PayPalIdentityProviderConfig>
- 
- org.keycloak.social.paypal.PayPalIdentityProvider
 
 
 
- 
- All Implemented Interfaces:
- ExchangeExternalToken,- ExchangeTokenToIdentityProviderToken,- IdentityProvider<PayPalIdentityProviderConfig>,- SocialIdentityProvider<PayPalIdentityProviderConfig>,- Provider
 
 public class PayPalIdentityProvider extends AbstractOAuth2IdentityProvider<PayPalIdentityProviderConfig> implements SocialIdentityProvider<PayPalIdentityProviderConfig> - Author:
- Petter Lysne (petterlysne at hotmail dot com)
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.keycloak.broker.oidc.AbstractOAuth2IdentityProviderAbstractOAuth2IdentityProvider.Endpoint
 - 
Nested classes/interfaces inherited from interface org.keycloak.broker.provider.IdentityProviderIdentityProvider.AuthenticationCallback
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static StringAUTH_URLstatic StringBASE_URLstatic StringDEFAULT_SCOPEstatic StringPROFILE_RESOURCEstatic StringTOKEN_RESOURCE- 
Fields inherited from class org.keycloak.broker.oidc.AbstractOAuth2IdentityProviderACCESS_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
 - 
Fields inherited from class org.keycloak.broker.provider.AbstractIdentityProviderACCOUNT_LINK_URL, session
 - 
Fields inherited from interface org.keycloak.broker.provider.IdentityProviderEXTERNAL_IDENTITY_PROVIDER, FEDERATED_ACCESS_TOKEN
 
- 
 - 
Constructor SummaryConstructors Constructor Description PayPalIdentityProvider(KeycloakSession session, PayPalIdentityProviderConfig config)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BrokeredIdentityContextdoGetFederatedIdentity(String accessToken)protected BrokeredIdentityContextextractIdentityFromProfile(EventBuilder event, com.fasterxml.jackson.databind.JsonNode profile)protected StringgetDefaultScopes()protected StringgetProfileEndpointForValidation(EventBuilder event)protected booleansupportsExternalExchange()- 
Methods inherited from class org.keycloak.broker.oidc.AbstractOAuth2IdentityProviderasJsonNode, authenticateTokenRequest, authenticationFinished, buildUserInfoRequest, callback, createAuthorizationUrl, exchangeExternal, exchangeExternalComplete, exchangeExternalImpl, exchangeExternalUserInfoValidationOnly, exchangeFromToken, exchangeSessionToken, exchangeStoredToken, extractTokenFromResponse, generateToken, getAccessTokenResponseParameter, getConfig, getFederatedIdentity, getJsonProperty, getSignatureContext, hasExternalExchangeToken, isIssuer, performLogin, retrieveToken, validateExternalTokenThroughUserInfo
 - 
Methods inherited from class org.keycloak.broker.provider.AbstractIdentityProviderbackchannelLogout, close, exchangeErrorResponse, exchangeNotLinked, exchangeNotLinkedNoStore, exchangeNotSupported, exchangeTokenExpired, exchangeUnsupportedRequiredType, export, getLinkingUrl, getMarshaller, importNewUser, keycloakInitiatedBrowserLogout, preprocessFederatedIdentity, updateBrokeredUser
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.broker.provider.IdentityProviderauthenticationFinished, backchannelLogout, callback, export, getMarshaller, importNewUser, keycloakInitiatedBrowserLogout, performLogin, preprocessFederatedIdentity, retrieveToken, updateBrokeredUser
 
- 
 
- 
- 
- 
Field Detail- 
BASE_URLpublic static final String BASE_URL - See Also:
- Constant Field Values
 
 - 
AUTH_URLpublic static final String AUTH_URL - See Also:
- Constant Field Values
 
 - 
TOKEN_RESOURCEpublic static final String TOKEN_RESOURCE - See Also:
- Constant Field Values
 
 - 
PROFILE_RESOURCEpublic static final String PROFILE_RESOURCE - See Also:
- Constant Field Values
 
 - 
DEFAULT_SCOPEpublic static final String DEFAULT_SCOPE - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
PayPalIdentityProviderpublic PayPalIdentityProvider(KeycloakSession session, PayPalIdentityProviderConfig config) 
 
- 
 - 
Method Detail- 
supportsExternalExchangeprotected boolean supportsExternalExchange() - Overrides:
- supportsExternalExchangein class- AbstractOAuth2IdentityProvider<PayPalIdentityProviderConfig>
 
 - 
getProfileEndpointForValidationprotected String getProfileEndpointForValidation(EventBuilder event) - Overrides:
- getProfileEndpointForValidationin class- AbstractOAuth2IdentityProvider<PayPalIdentityProviderConfig>
 
 - 
extractIdentityFromProfileprotected BrokeredIdentityContext extractIdentityFromProfile(EventBuilder event, com.fasterxml.jackson.databind.JsonNode profile) - Overrides:
- extractIdentityFromProfilein class- AbstractOAuth2IdentityProvider<PayPalIdentityProviderConfig>
 
 - 
doGetFederatedIdentityprotected BrokeredIdentityContext doGetFederatedIdentity(String accessToken) - Overrides:
- doGetFederatedIdentityin class- AbstractOAuth2IdentityProvider<PayPalIdentityProviderConfig>
 
 - 
getDefaultScopesprotected String getDefaultScopes() - Specified by:
- getDefaultScopesin class- AbstractOAuth2IdentityProvider<PayPalIdentityProviderConfig>
 
 
- 
 
-