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 Modifier and Type Field Description static String
CSRF_AUTHORIZER_NAME
-
Constructor Summary
Constructors Constructor Description AxelorCsrfAuthorizer(ClientListService clientListService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isAuthorized(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore, List<org.pac4j.core.profile.UserProfile> profiles)
MatchesAxelorCsrfGenerator
behavior.
-
-
-
Field Detail
-
CSRF_AUTHORIZER_NAME
public static final String CSRF_AUTHORIZER_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AxelorCsrfAuthorizer
@Inject public AxelorCsrfAuthorizer(ClientListService clientListService)
-
-
Method Detail
-
isAuthorized
public boolean isAuthorized(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore, List<org.pac4j.core.profile.UserProfile> profiles)
MatchesAxelorCsrfGenerator
behavior.Code based on: https://github.com/pac4j/pac4j/blob/4.5.x/pac4j-core/src/main/java/org/pac4j/core/authorization/authorizer/CsrfAuthorizer.java#L40
- 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:
- whether the access is authorized
-
-