Class AxelorCsrfGenerator

java.lang.Object
org.pac4j.core.matching.matcher.csrf.DefaultCsrfTokenGenerator
com.axelor.auth.pac4j.AxelorCsrfGenerator
All Implemented Interfaces:
org.pac4j.core.matching.matcher.csrf.CsrfTokenGenerator

@Singleton public class AxelorCsrfGenerator extends org.pac4j.core.matching.matcher.csrf.DefaultCsrfTokenGenerator
CSRF token generator without rotating tokens for AJAX-heavy front-end
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    get(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore)
     

    Methods inherited from class org.pac4j.core.matching.matcher.csrf.DefaultCsrfTokenGenerator

    getTtlInSeconds, isRotateTokens, setRotateTokens, setTtlInSeconds

    Methods inherited from class java.lang.Object

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

    • AxelorCsrfGenerator

      public AxelorCsrfGenerator()
  • Method Details

    • get

      public String get(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore)
      Specified by:
      get in interface org.pac4j.core.matching.matcher.csrf.CsrfTokenGenerator
      Overrides:
      get in class org.pac4j.core.matching.matcher.csrf.DefaultCsrfTokenGenerator