interface OAuth2ProviderService
Always code as if the guy who ends up maintaining your code will be a violent psychopath that knows where you live. - John Woods Created on 07.04.2016.
| Type Params | Return Type | Name and description |
|---|---|---|
|
abstract OAuth20Service |
buildScribeService(OAuth2ProviderConfiguration providerConfiguration)Create the scribe service to make oAuthCalls with |
|
abstract OAuth2SpringToken |
createSpringAuthToken(OAuth2AccessToken accessToken)@return
|
|
abstract OAuth2AccessToken |
getAccessToken(java.lang.String authCode)Get the access token from the oAuth2 Service |
|
abstract java.lang.Class<? extends DefaultApi20> |
getApiClass()A scribeJava API class to use for the oAuth Request or any other class that extends the @link{DefaultApi20}*
|
|
abstract java.lang.String |
getAuthUrl(java.util.Map<java.lang.String, java.lang.String> params)Get the authorization URL |
|
abstract java.lang.String |
getFailureUrl()
|
|
abstract java.lang.String |
getProfileScope()Path to the OAuthScope that is returning the UserIdentifier i.e 'https://graph.facebook.com/me' for facebook |
|
abstract java.lang.String |
getProviderID()
|
|
abstract Response |
getResponse(OAuth2AccessToken accessToken)Get the response from OAuthServer |
|
abstract java.lang.String |
getScopeSeparator()Get separator string for concatenating the mandatory and the optional scopes |
|
abstract java.lang.String |
getScopes()Path to the OAuthScope(s) that are needed to get all the data you want. |
|
abstract java.lang.String |
getSuccessUrl()
|
|
abstract void |
init(OAuth2ProviderConfiguration oAuth2ProviderConfiguration)Initialize the service with a configuration |
Create the scribe service to make oAuthCalls with
@return
Get the access token from the oAuth2 Service @return
A scribeJava API class to use for the oAuth Request or any other class that extends the @link{DefaultApi20}*
Get the authorization URL @return
params - Additional params for the url call
Path to the OAuthScope that is returning the UserIdentifier i.e 'https://graph.facebook.com/me' for facebook
Get the response from OAuthServer @return
Get separator string for concatenating the mandatory and the optional scopes
Path to the OAuthScope(s) that are needed to get all the data you want. Must at least contain the scope to retrieve the UserIdentifier i.e 'https://graph.facebook.com/me' for facebook
Initialize the service with a configuration