Package com.axelor.auth.pac4j
Class AuthPac4jModule
- java.lang.Object
-
- com.google.inject.PrivateModule
-
- org.apache.shiro.guice.ShiroModule
-
- org.apache.shiro.guice.web.ShiroWebModule
-
- com.axelor.auth.pac4j.AuthPac4jModule
-
- All Implemented Interfaces:
Module
,org.apache.shiro.util.Destroyable
public class AuthPac4jModule extends org.apache.shiro.guice.web.ShiroWebModule
-
-
Field Summary
Fields Modifier and Type Field Description static String
CSRF_COOKIE_NAME
static String
CSRF_HEADER_NAME
-
Constructor Summary
Constructors Constructor Description AuthPac4jModule(javax.servlet.ServletContext servletContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T> AnnotatedBindingBuilder<T>
bindAndExpose(TypeLiteral<T> typeLiteral)
protected <T> AnnotatedBindingBuilder<T>
bindAndExpose(Class<T> cls)
protected void
bindWebSecurityManager(AnnotatedBindingBuilder<? super org.apache.shiro.web.mgt.WebSecurityManager> bind)
org.pac4j.core.client.finder.DefaultCallbackClientFinder
callbackClientFinder(List<org.pac4j.core.client.Client> clients)
protected void
configureShiroWeb()
org.apache.shiro.web.mgt.DefaultWebSecurityManager
webSecurityManager(Collection<org.apache.shiro.realm.Realm> realms, Set<org.apache.shiro.authc.AuthenticationListener> authenticationListeners, org.apache.shiro.authc.pam.ModularRealmAuthenticator authenticator, AxelorSessionManager sessionManager, AxelorRememberMeManager rememberMeManager)
-
Methods inherited from class org.apache.shiro.guice.web.ShiroWebModule
addFilterChain, addFilterChain, addFilterChain, bindEnvironment, bindGuiceFilter, bindGuiceFilter, bindSecurityManager, bindSessionManager, bindWebEnvironment, config, config, config, configureShiro, filterConfig, filterConfig, filterConfig, filterConfig, globalFilters, guiceFilterModule, guiceFilterModule
-
Methods inherited from class org.apache.shiro.guice.ShiroModule
add, bindBeanType, bindEventBus, bindRealm, configure, destroy
-
Methods inherited from class com.google.inject.PrivateModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, expose, expose, expose, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
-
-
-
Field Detail
-
CSRF_HEADER_NAME
public static final String CSRF_HEADER_NAME
- See Also:
- Constant Field Values
-
CSRF_COOKIE_NAME
public static final String CSRF_COOKIE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
configureShiroWeb
protected void configureShiroWeb()
- Specified by:
configureShiroWeb
in classorg.apache.shiro.guice.web.ShiroWebModule
-
bindAndExpose
protected <T> AnnotatedBindingBuilder<T> bindAndExpose(Class<T> cls)
-
bindAndExpose
protected <T> AnnotatedBindingBuilder<T> bindAndExpose(TypeLiteral<T> typeLiteral)
-
bindWebSecurityManager
protected void bindWebSecurityManager(AnnotatedBindingBuilder<? super org.apache.shiro.web.mgt.WebSecurityManager> bind)
- Overrides:
bindWebSecurityManager
in classorg.apache.shiro.guice.web.ShiroWebModule
-
webSecurityManager
@Provides public org.apache.shiro.web.mgt.DefaultWebSecurityManager webSecurityManager(Collection<org.apache.shiro.realm.Realm> realms, Set<org.apache.shiro.authc.AuthenticationListener> authenticationListeners, org.apache.shiro.authc.pam.ModularRealmAuthenticator authenticator, AxelorSessionManager sessionManager, AxelorRememberMeManager rememberMeManager)
-
-