public class GaeUserServiceClient extends IndirectClient<GaeUserCredentials,GaeUserServiceProfile>
This class is the OpenID client to authenticate users with UserService on App Engine
ATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, callbackUrlResolver, NEEDS_CLIENT_REDIRECTION_PARAMETER
logger
Constructor and Description |
---|
GaeUserServiceClient() |
Modifier and Type | Method and Description |
---|---|
String |
getAuthDomain() |
ClientType |
getClientType()
Return the client type.
|
protected void |
internalInit(WebContext context)
Internal initialization of the object.
|
protected boolean |
isDirectRedirection()
Define if this client has a direct redirection.
|
protected IndirectClient<GaeUserCredentials,GaeUserServiceProfile> |
newClient()
Create a new instance of the client.
|
protected GaeUserCredentials |
retrieveCredentials(WebContext context) |
protected RedirectAction |
retrieveRedirectAction(WebContext context) |
protected GaeUserServiceProfile |
retrieveUserProfile(GaeUserCredentials credentials,
WebContext context) |
void |
setAuthDomain(String authDomain)
Set the authDomain for connect to google apps for domain with the UserService
|
computeFinalCallbackUrl, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCredentials, getRedirectAction, getRedirectionUrl, getStateParameter, isIncludeClientNameInCallbackUrl, redirect, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setIncludeClientNameInCallbackUrl
addAuthorizationGenerator, clone, getAuthorizationGenerators, getName, getUserProfile, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setName, toString
init, reinit
protected IndirectClient<GaeUserCredentials,GaeUserServiceProfile> newClient()
BaseClient
newClient
in class BaseClient<GaeUserCredentials,GaeUserServiceProfile>
protected boolean isDirectRedirection()
IndirectClient
isDirectRedirection
in class IndirectClient<GaeUserCredentials,GaeUserServiceProfile>
protected RedirectAction retrieveRedirectAction(WebContext context)
retrieveRedirectAction
in class IndirectClient<GaeUserCredentials,GaeUserServiceProfile>
protected GaeUserCredentials retrieveCredentials(WebContext context) throws RequiresHttpAction
retrieveCredentials
in class IndirectClient<GaeUserCredentials,GaeUserServiceProfile>
RequiresHttpAction
protected GaeUserServiceProfile retrieveUserProfile(GaeUserCredentials credentials, WebContext context)
retrieveUserProfile
in class BaseClient<GaeUserCredentials,GaeUserServiceProfile>
public ClientType getClientType()
BaseClient
getClientType
in class BaseClient<GaeUserCredentials,GaeUserServiceProfile>
protected void internalInit(WebContext context)
InitializableWebObject
internalInit
in class InitializableWebObject
context
- the web contextpublic void setAuthDomain(String authDomain)
authDomain
- the authentication domainpublic String getAuthDomain()
Copyright © 2016. All rights reserved.