public class GaeUserServiceClient extends IndirectClient<GaeUserCredentials,GaeUserServiceProfile>
This class is the OpenID client to authenticate users with UserService on App Engine
Modifier and Type | Field and Description |
---|---|
protected String |
authDomain |
protected com.google.appengine.api.users.UserService |
service |
ATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, callbackUrlResolver
logger
Constructor and Description |
---|
GaeUserServiceClient() |
Modifier and Type | Method and Description |
---|---|
String |
getAuthDomain() |
protected void |
internalInit(WebContext context)
Internal initialization of the object.
|
protected GaeUserCredentials |
retrieveCredentials(WebContext context)
Retrieve the credentials.
|
protected RedirectAction |
retrieveRedirectAction(WebContext context)
Retrieve the redirect action.
|
protected GaeUserServiceProfile |
retrieveUserProfile(GaeUserCredentials credentials,
WebContext context)
Retrieve a user userprofile.
|
void |
setAuthDomain(String authDomain)
Set the authDomain for connect to google apps for domain with the UserService
|
computeFinalCallbackUrl, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCredentials, getRedirectAction, getStateParameter, isIncludeClientNameInCallbackUrl, redirect, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setIncludeClientNameInCallbackUrl
addAuthorizationGenerator, getAuthorizationGenerators, getName, getUserProfile, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setName, toString
init, reinit
protected com.google.appengine.api.users.UserService service
protected String authDomain
protected void internalInit(WebContext context)
InitializableWebObject
internalInit
in class IndirectClient<GaeUserCredentials,GaeUserServiceProfile>
context
- the web contextprotected RedirectAction retrieveRedirectAction(WebContext context)
IndirectClient
retrieveRedirectAction
in class IndirectClient<GaeUserCredentials,GaeUserServiceProfile>
context
- the web contextprotected GaeUserCredentials retrieveCredentials(WebContext context) throws HttpAction
IndirectClient
retrieveCredentials
in class IndirectClient<GaeUserCredentials,GaeUserServiceProfile>
context
- the web contextHttpAction
- whether an additional HTTP action is requiredprotected GaeUserServiceProfile retrieveUserProfile(GaeUserCredentials credentials, WebContext context) throws HttpAction
BaseClient
retrieveUserProfile
in class BaseClient<GaeUserCredentials,GaeUserServiceProfile>
credentials
- the credentialscontext
- the web contextHttpAction
- whether an additional HTTP action is requiredpublic void setAuthDomain(String authDomain)
authDomain
- the authentication domainpublic String getAuthDomain()
Copyright © 2016. All rights reserved.