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 StringCSRF_COOKIE_NAMEstatic StringCSRF_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 voidbindWebSecurityManager(AnnotatedBindingBuilder<? super org.apache.shiro.web.mgt.WebSecurityManager> bind)org.pac4j.core.client.finder.DefaultCallbackClientFindercallbackClientFinder(ClientListService clientListService)protected voidconfigureShiroWeb()List<org.apache.shiro.guice.web.ShiroWebModule.FilterConfig<? extends javax.servlet.Filter>>globalFilters()Disable global filters due to impact on some web services (ex:ws/files/data-export).org.apache.shiro.web.mgt.DefaultWebSecurityManagerwebSecurityManager(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, bindShiroFilterConfiguration, bindWebEnvironment, config, config, config, configureShiro, filterConfig, filterConfig, filterConfig, filterConfig, 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:
configureShiroWebin 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:
bindWebSecurityManagerin 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)
-
callbackClientFinder
@Provides public org.pac4j.core.client.finder.DefaultCallbackClientFinder callbackClientFinder(ClientListService clientListService)
-
globalFilters
public List<org.apache.shiro.guice.web.ShiroWebModule.FilterConfig<? extends javax.servlet.Filter>> globalFilters()
Disable global filters due to impact on some web services (ex:ws/files/data-export). See issue #1193.- Overrides:
globalFiltersin classorg.apache.shiro.guice.web.ShiroWebModule- Returns:
- empty list
-
-