Class WebAuthenticationManagerImpl

java.lang.Object
io.vertigo.vega.impl.authentication.WebAuthenticationManagerImpl
All Implemented Interfaces:
io.vertigo.core.node.component.Component, io.vertigo.core.node.component.CoreComponent, io.vertigo.core.node.component.Manager, WebAuthenticationManager

public final class WebAuthenticationManagerImpl extends Object implements WebAuthenticationManager
Standard pattern for SSO authentication handlers.
Author:
skerdudou
  • Constructor Summary

    Constructors
    Constructor
    Description
    WebAuthenticationManagerImpl(String appLoginHandler, io.vertigo.account.security.VSecurityManager securityManager, Optional<io.vertigo.account.authentication.AuthenticationManager> authenticationManagerOpt, List<WebAuthenticationPlugin> webAuthenticationPlugins)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.vertigo.core.lang.Tuple<Boolean,jakarta.servlet.http.HttpServletRequest>
    doBeforeChain(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
    Code to execute before the call to the filter chain.
    static boolean
    isJsonRequest(jakarta.servlet.http.HttpServletRequest request)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WebAuthenticationManagerImpl

      @Inject public WebAuthenticationManagerImpl(String appLoginHandler, io.vertigo.account.security.VSecurityManager securityManager, Optional<io.vertigo.account.authentication.AuthenticationManager> authenticationManagerOpt, List<WebAuthenticationPlugin> webAuthenticationPlugins)
  • Method Details

    • doBeforeChain

      public io.vertigo.core.lang.Tuple<Boolean,jakarta.servlet.http.HttpServletRequest> doBeforeChain(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
      Code to execute before the call to the filter chain.
      Specified by:
      doBeforeChain in interface WebAuthenticationManager
      Parameters:
      request - the httpRequest
      response - the httpResponse
      Returns:
      a tuple composed of two values : - a boolean to indicate wether the request has been handled in the method and chain must be stopped - the HttpRequest that will be transfered in the filter chain. (for example if you need to wrap it for any reason )
    • isJsonRequest

      public static boolean isJsonRequest(jakarta.servlet.http.HttpServletRequest request)