@StableMinor(version="12.2", sinceVersion="4.0") public interface IHttpAuthenticator
lumis.portal.authentication.http
Modifier and Type | Method and Description |
---|---|
String |
authenticate(HttpServletRequest request,
HttpServletResponse response)
Performs the authentication for a given request.
|
String authenticate(HttpServletRequest request, HttpServletResponse response) throws PortalException, ContinueOnNextRequestException
This method is called by the Portal when it identifies that it is necessary to authenticate a http request. The result of this method affects the Portal authentication execution flow as below:
null
- the http authentication failed, so
the Portal proceeds to its default authentication.ContinueOnNextRequestException
-
the portal will just return the current response and the next request should
continue the authentication by reaching this method again.
After authentication, the user may still not have access permission,
and further authentication be requested by calling this method again.
It is the responsability of the implementation of this method to
identify when no futher authentication should be tried, to prevent
an infinite loop of authentication attempts. When this is the
case, this method must return null
, to indicate that the
http authentication failed.
request
- the http request.response
- the http response.null
if the authentication failed.ContinueOnNextRequestException
- if the authentication did not
complete and requires to wait the next request to proceed.
This method may set the response with some data, and throw this exception
to await the next browser request after receiving the response set.
This is useful for authentications that need more than one request
to complete the authentication.PortalException
lumis.portal.authentication.http
LumisXP 12.2.0.200122 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.