public class StackoverflowIdentityProvider extends AbstractOAuth2IdentityProvider<StackOverflowIdentityProviderConfig> implements SocialIdentityProvider<StackOverflowIdentityProviderConfig>
AbstractOAuth2IdentityProvider.Endpoint
IdentityProvider.AuthenticationCallback
Modifier and Type | Field and Description |
---|---|
static String |
AUTH_URL |
static String |
DEFAULT_SCOPE |
static String |
PROFILE_URL |
static String |
TOKEN_URL |
ACCESS_DENIED, FEDERATED_ACCESS_TOKEN, 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
Constructor and Description |
---|
StackoverflowIdentityProvider(StackOverflowIdentityProviderConfig config) |
Modifier and Type | Method and Description |
---|---|
protected BrokeredIdentityContext |
doGetFederatedIdentity(String accessToken) |
protected static String |
extractUsernameFromProfileURL(String profileURL) |
protected String |
getDefaultScopes() |
static String |
unescapeHtml3(String input) |
asJsonNode, callback, createAuthorizationUrl, extractTokenFromResponse, getConfig, getFederatedIdentity, getJsonProperty, performLogin, retrieveToken
attachUserSession, backchannelLogout, close, export, getMarshaller, importNewUser, keycloakInitiatedBrowserLogout, preprocessFederatedIdentity, updateBrokeredUser
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
attachUserSession, 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
public StackoverflowIdentityProvider(StackOverflowIdentityProviderConfig config)
protected BrokeredIdentityContext doGetFederatedIdentity(String accessToken)
doGetFederatedIdentity
in class AbstractOAuth2IdentityProvider<StackOverflowIdentityProviderConfig>
protected static String extractUsernameFromProfileURL(String profileURL)
protected String getDefaultScopes()
getDefaultScopes
in class AbstractOAuth2IdentityProvider<StackOverflowIdentityProviderConfig>
Copyright © 2016 JBoss by Red Hat. All rights reserved.