Interface BaseIdentityProvider.Context
-
- Enclosing interface:
- BaseIdentityProvider
public static interface BaseIdentityProvider.Context
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidauthenticate(UserIdentity userIdentity)Authenticate and register the user into the platform.javax.servlet.http.HttpServletRequestgetRequest()Get the received HTTP request.javax.servlet.http.HttpServletResponsegetResponse()Get the HTTP response to sendjava.lang.StringgetServerBaseURL()Return the server base URL
-
-
-
Method Detail
-
getRequest
javax.servlet.http.HttpServletRequest getRequest()
Get the received HTTP request. Note -getRequest().getSession()must not be used in order to support future clustering of web servers without stateful server sessions.
-
getResponse
javax.servlet.http.HttpServletResponse getResponse()
Get the HTTP response to send
-
getServerBaseURL
java.lang.String getServerBaseURL()
Return the server base URL- See Also:
Server.getPublicRootUrl()
-
authenticate
void authenticate(UserIdentity userIdentity)
Authenticate and register the user into the platform. The first time a user is authenticated (and ifIdentityProvider.allowsUsersToSignUp()is true), a new user will be registered. Then, only user's name and email are updated. If @link #allowsUsersToSignUp()} is set to false and a new user try to authenticate, then the user is not authenticated and he's redirected to a dedicated page. If the email of the user is already used by an existing user of the platform, then the user is not authenticated and he's redirected to a dedicated page.
-
-