Interface LoginResponseHandler

All Known Implementing Classes:
Cas2Authenticator, WebEngineFormAuthenticator

public interface LoginResponseHandler
Interface for services that knows how to handle login responses. This was specially introduced to extend NuxeoAuthenticationPlugin interface to add login response handling capabilities to existing authenticators.

This interface should be implemented by NuxeoAuthenticationPlugin instances that needs full control over the login response.

Author:
Bogdan Stefanescu
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onError(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    Handles the login error response.
    boolean
    onSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    Handles login success response.
  • Method Details

    • onError

      boolean onError(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Handles the login error response.
      Parameters:
      request - the HTTP request
      response - the HTTP response
      Returns:
      true if error was handled, false otherwise
    • onSuccess

      boolean onSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Handles login success response.
      Parameters:
      request - the HTTP request
      response - the HTTP response
      Returns:
      true if response was handled, false otherwise