public abstract class AbstractOAuth2Provider extends Object implements SocialProvider
Constructor and Description |
---|
AbstractOAuth2Provider() |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
getAuthUrl() |
AuthRequest |
getAuthUrl(ClientSessionModel clientSession,
SocialProviderConfig config,
String state) |
abstract String |
getId() |
abstract String |
getName() |
protected abstract SocialUser |
getProfile(String accessToken) |
protected abstract String |
getScope() |
protected abstract String |
getTokenUrl() |
SocialUser |
processCallback(ClientSessionModel clientSession,
SocialProviderConfig config,
AuthCallback callback) |
public abstract String getId()
getId
in interface SocialProvider
public abstract String getName()
getName
in interface SocialProvider
protected abstract String getScope()
protected abstract String getAuthUrl()
protected abstract String getTokenUrl()
protected abstract SocialUser getProfile(String accessToken) throws SocialProviderException
SocialProviderException
public AuthRequest getAuthUrl(ClientSessionModel clientSession, SocialProviderConfig config, String state) throws SocialProviderException
getAuthUrl
in interface SocialProvider
SocialProviderException
public SocialUser processCallback(ClientSessionModel clientSession, SocialProviderConfig config, AuthCallback callback) throws SocialProviderException
processCallback
in interface SocialProvider
SocialProviderException
Copyright © 2015. All Rights Reserved.