Interface BaseIdentityProvider.Context
-
- Enclosing interface:
- BaseIdentityProvider
public static interface BaseIdentityProvider.Context
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
authenticate(UserIdentity userIdentity)
Authenticate and register the user into the platform.HttpRequest
getHttpRequest()
Get the received HTTP request.HttpResponse
getHttpResponse()
Get the HTTP response to send.javax.servlet.http.HttpServletRequest
getRequest()
Deprecated, for removal: This API element is subject to removal in a future version.since 9.16.javax.servlet.http.HttpServletResponse
getResponse()
Deprecated, for removal: This API element is subject to removal in a future version.since 9.16.java.lang.String
getServerBaseURL()
Return the server base URL
-
-
-
Method Detail
-
getHttpRequest
HttpRequest getHttpRequest()
Get the received HTTP request.- Since:
- 9.16
-
getHttpResponse
HttpResponse getHttpResponse()
Get the HTTP response to send.- Since:
- 9.16
-
getRequest
@Deprecated(since="9.16", forRemoval=true) javax.servlet.http.HttpServletRequest getRequest()
Deprecated, for removal: This API element is subject to removal in a future version.since 9.16. UsegetHttpRequest()
instead.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
@Deprecated(since="9.16", forRemoval=true) javax.servlet.http.HttpServletResponse getResponse()
Deprecated, for removal: This API element is subject to removal in a future version.since 9.16. UsegetHttpResponse()
instead.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.
-
-