public class OAuth2ProviderBean extends Object implements OAuth2Provider
| Constructor and Description |
|---|
OAuth2ProviderBean(String providerId,
String location,
String clientId,
String clientSecret,
String redirectUri,
String tokenLocation,
String profileLocation,
Collection scopes) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthLocation()
This is the URL we will redirect the user to, where they will enter their
username and password into the remote application (if required) and authorise
our app
|
String |
getClientId() |
String |
getClientSecret() |
Collection<String> |
getPermissionScopes()
Returns a list of named permission scopes, such as "email", "profile", etc,
which determine what this client is permitted to do
|
String |
getProfileLocation() |
String |
getProviderId()
Identifies the provider to this application, ie 'facebook' or 'twitter' or 'myownserver'
|
String |
getRedirectURI() |
String |
getTokenLocation()
This is the URL we will call direct (server to server) to get an access token
from the access code received in the redirect back to our site from the oauth server
|
public String getAuthLocation()
OAuth2ProvidergetAuthLocation in interface OAuth2Providerpublic String getClientId()
getClientId in interface OAuth2Providerpublic String getClientSecret()
getClientSecret in interface OAuth2Providerpublic String getRedirectURI()
getRedirectURI in interface OAuth2Providerpublic String getTokenLocation()
OAuth2ProvidergetTokenLocation in interface OAuth2Providerpublic String getProfileLocation()
getProfileLocation in interface OAuth2Providerpublic String getProviderId()
OAuth2ProvidergetProviderId in interface OAuth2Providerpublic Collection<String> getPermissionScopes()
OAuth2ProvidergetPermissionScopes in interface OAuth2Provider