public class GitHubClient extends OAuth20Client
This class is the OAuth client to authenticate users in GitHub.
The scope can be defined to require specific permissions from the user by using the setScope(String) method.
By default, the scope is: user.
It returns a GitHubProfile.
More information at http://developer.github.com/v3/users/
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SCOPE |
configurationATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, callbackUrlResolver, urlResolverlogger| Constructor and Description |
|---|
GitHubClient() |
GitHubClient(String key,
String secret) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clientInit() |
String |
getScope() |
void |
setScope(String scope) |
getConfiguration, getKey, getSecret, setConfiguration, setKey, setSecret, toStringcomputeFinalCallbackUrl, defaultLogoutActionBuilder, defaultRedirectionActionBuilder, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCredentials, getLogoutAction, getLogoutActionBuilder, getRedirectionActionBuilder, getUrlResolver, internalInit, newDefaultCallbackUrlResolver, redirect, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setLogoutActionBuilder, setRedirectionActionBuilder, setUrlResolveraddAuthorizationGenerator, addAuthorizationGenerators, defaultAuthenticator, defaultCredentialsExtractor, defaultProfileCreator, getAuthenticator, getAuthorizationGenerators, getCredentialsExtractor, getCustomProperties, getName, getProfileCreator, getUserProfile, notifySessionRenewal, retrieveCredentials, retrieveUserProfile, setAuthenticator, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setCredentialsExtractor, setCustomProperties, setName, setProfileCreatorinitpublic static final String DEFAULT_SCOPE
protected void clientInit()
clientInit in class OAuth20Clientpublic String getScope()
public void setScope(String scope)
Copyright © 2019. All rights reserved.