Class AxelorCallbackLogic

java.lang.Object
org.pac4j.core.engine.AbstractExceptionAwareLogic
org.pac4j.core.engine.DefaultCallbackLogic
com.axelor.auth.pac4j.AxelorCallbackLogic
All Implemented Interfaces:
org.pac4j.core.engine.CallbackLogic

@Singleton public class AxelorCallbackLogic extends org.pac4j.core.engine.DefaultCallbackLogic
  • Field Summary

    Fields inherited from class org.pac4j.core.engine.DefaultCallbackLogic

    INSTANCE
  • Constructor Summary

    Constructors
    Constructor
    Description
    AxelorCallbackLogic(ErrorHandler errorHandler, AxelorCsrfMatcher csrfMatcher, org.pac4j.core.client.finder.DefaultCallbackClientFinder clientFinder, AuthPac4jInfo pac4jInfo, MFAService mfaService, AxelorUrlResolver urlResolver)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Object
    handleException(Exception e, org.pac4j.core.http.adapter.HttpActionAdapter httpActionAdapter, org.pac4j.core.context.WebContext context)
     
    protected org.pac4j.core.exception.http.HttpAction
    mfaAction(String username, List<MFAMethod> methods, org.pac4j.core.context.WebContext context)
     
    perform(org.pac4j.core.config.Config config, String inputDefaultUrl, Boolean inputRenewSession, String defaultClient, org.pac4j.core.context.FrameworkParameters parameters)
     
    protected org.pac4j.core.exception.http.HttpAction
    redirectToOriginallyRequestedUrl(org.pac4j.core.context.CallContext ctx, String defaultUrl)
     
    protected void
    renewSession(org.pac4j.core.context.CallContext ctx, org.pac4j.core.config.Config config)
    Redefined to account for failed clients

    Methods inherited from class org.pac4j.core.engine.DefaultCallbackLogic

    getClientFinder, getSavedRequestHandler, saveUserProfile, setClientFinder, setSavedRequestHandler, toString

    Methods inherited from class org.pac4j.core.engine.AbstractExceptionAwareLogic

    buildContext, getErrorUrl, runtimeException, setErrorUrl

    Methods inherited from class java.lang.Object

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

  • Method Details

    • perform

      public Object perform(org.pac4j.core.config.Config config, String inputDefaultUrl, Boolean inputRenewSession, String defaultClient, org.pac4j.core.context.FrameworkParameters parameters)
      Specified by:
      perform in interface org.pac4j.core.engine.CallbackLogic
      Overrides:
      perform in class org.pac4j.core.engine.DefaultCallbackLogic
    • renewSession

      protected void renewSession(org.pac4j.core.context.CallContext ctx, org.pac4j.core.config.Config config)
      Redefined to account for failed clients
      Overrides:
      renewSession in class org.pac4j.core.engine.DefaultCallbackLogic
      See Also:
    • redirectToOriginallyRequestedUrl

      protected org.pac4j.core.exception.http.HttpAction redirectToOriginallyRequestedUrl(org.pac4j.core.context.CallContext ctx, String defaultUrl)
      Overrides:
      redirectToOriginallyRequestedUrl in class org.pac4j.core.engine.DefaultCallbackLogic
    • mfaAction

      protected org.pac4j.core.exception.http.HttpAction mfaAction(String username, List<MFAMethod> methods, org.pac4j.core.context.WebContext context)
    • handleException

      protected Object handleException(Exception e, org.pac4j.core.http.adapter.HttpActionAdapter httpActionAdapter, org.pac4j.core.context.WebContext context)
      Overrides:
      handleException in class org.pac4j.core.engine.AbstractExceptionAwareLogic