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 SocialProviderpublic abstract String getName()
getName in interface SocialProviderprotected abstract String getScope()
protected abstract String getAuthUrl()
protected abstract String getTokenUrl()
protected abstract SocialUser getProfile(String accessToken) throws SocialProviderException
SocialProviderExceptionpublic AuthRequest getAuthUrl(ClientSessionModel clientSession, SocialProviderConfig config, String state) throws SocialProviderException
getAuthUrl in interface SocialProviderSocialProviderExceptionpublic SocialUser processCallback(ClientSessionModel clientSession, SocialProviderConfig config, AuthCallback callback) throws SocialProviderException
processCallback in interface SocialProviderSocialProviderExceptionCopyright © 2014. All Rights Reserved.