|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@StableMinor(version="5.5", sinceVersion="4.0") public interface IHttpAuthenticator
Defines the callback methods an http authenticator must provide for the Portal.
lumis.portal.authentication.http
Method Summary | |
---|---|
String |
authenticate(HttpServletRequest request,
HttpServletResponse response)
Performs the authentication for a given request. |
Method Detail |
---|
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
authenticate
method to identify when no futher authentication
should be tried, to prevent an infinite loop of authentication attempts.
It is the responsability of the implementation of this method
to identify when the authentication should not be tried anymore,
to prevent an infinite authentication attempts loop. 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 be 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |