Package com.axelor.auth.pac4j
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
Default token rotation behavior is to generate a new token on every request, which is incompatible with highly asynchronous front-end.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.pac4j.core.matching.matcher.csrf.DefaultCsrfTokenGenerator
getTtlInSeconds, isRotateTokens, setRotateTokens, setTtlInSeconds
-
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:
getin interfaceorg.pac4j.core.matching.matcher.csrf.CsrfTokenGenerator- Overrides:
getin classorg.pac4j.core.matching.matcher.csrf.DefaultCsrfTokenGenerator
-