Package com.axelor.auth.pac4j
Class AxelorCsrfAuthorizer
java.lang.Object
org.pac4j.core.authorization.authorizer.CsrfAuthorizer
com.axelor.auth.pac4j.AxelorCsrfAuthorizer
- All Implemented Interfaces:
org.pac4j.core.authorization.authorizer.Authorizer
@Singleton
public class AxelorCsrfAuthorizer
extends org.pac4j.core.authorization.authorizer.CsrfAuthorizer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isAuthorized
(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore, List<org.pac4j.core.profile.UserProfile> profiles) Checks if the user profiles and / or the current web context are authorized.Methods inherited from class org.pac4j.core.authorization.authorizer.CsrfAuthorizer
getHeaderName, getParameterName, hashEquals, isCheckAllRequests, setCheckAllRequests, setHeaderName, setParameterName, toString
-
Field Details
-
CSRF_AUTHORIZER_NAME
- See Also:
-
-
Constructor Details
-
AxelorCsrfAuthorizer
-
-
Method Details
-
isAuthorized
public boolean isAuthorized(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore, List<org.pac4j.core.profile.UserProfile> profiles) Checks if the user profiles and / or the current web context are authorized.No CSRF check needed for native and direct clients.
- Specified by:
isAuthorized
in interfaceorg.pac4j.core.authorization.authorizer.Authorizer
- Overrides:
isAuthorized
in classorg.pac4j.core.authorization.authorizer.CsrfAuthorizer
- Parameters:
context
- the web contextsessionStore
- the session storeprofiles
- the user profiles- Returns:
- if the access is authorized
-