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.lang.util.Destroyable
public class AuthPac4jModule
extends org.apache.shiro.guice.web.ShiroWebModule
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.shiro.guice.web.ShiroWebModule
org.apache.shiro.guice.web.ShiroWebModule.FilterConfig<T extends jakarta.servlet.Filter> -
Field Summary
FieldsFields inherited from class org.apache.shiro.guice.web.ShiroWebModule
ANON, AUTHC, AUTHC_BASIC, AUTHC_BEARER, INVALID_REQUEST, IP, LOGOUT, NO_SESSION_CREATION, PERMS, PORT, REST, ROLES, SSL, USER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> AnnotatedBindingBuilder<T> bindAndExpose(TypeLiteral<T> typeLiteral) protected <T> AnnotatedBindingBuilder<T> bindAndExpose(Class<T> cls) protected voidbindSessionManager(AnnotatedBindingBuilder<org.apache.shiro.session.mgt.SessionManager> bind) protected voidbindWebSecurityManager(AnnotatedBindingBuilder<? super org.apache.shiro.web.mgt.WebSecurityManager> bind) cacheConfig(javax.cache.spi.CachingProvider cachingProvider, long sessionTimeoutMinutes) Cache configuration with session timeoutjavax.cache.CacheManagercacheManager(javax.cache.spi.CachingProvider cachingProvider) javax.cache.spi.CachingProviderorg.pac4j.core.client.finder.DefaultCallbackClientFindercallbackClientFinder(ClientListService clientListService) protected voidlongorg.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, AxelorJCacheManager cacheManager) Methods inherited from class org.apache.shiro.guice.web.ShiroWebModule
addFilterChain, addFilterChain, addFilterChain, bindEnvironment, bindGuiceFilter, bindGuiceFilter, bindSecurityManager, bindWebEnvironment, config, config, config, configureShiro, filterConfig, filterConfig, filterConfig, filterConfig, globalFilters, guiceFilterModule, guiceFilterModuleMethods inherited from class org.apache.shiro.guice.ShiroModule
add, bindBeanType, bindEventBus, bindRealm, configure, destroyMethods 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 Details
-
CSRF_HEADER_NAME
- See Also:
-
CSRF_COOKIE_NAME
- See Also:
-
-
Constructor Details
-
AuthPac4jModule
public AuthPac4jModule(jakarta.servlet.ServletContext servletContext)
-
-
Method Details
-
configureShiroWeb
protected void configureShiroWeb()- Specified by:
configureShiroWebin classorg.apache.shiro.guice.web.ShiroWebModule
-
bindAndExpose
-
bindAndExpose
-
bindWebSecurityManager
protected void bindWebSecurityManager(AnnotatedBindingBuilder<? super org.apache.shiro.web.mgt.WebSecurityManager> bind) - Overrides:
bindWebSecurityManagerin classorg.apache.shiro.guice.web.ShiroWebModule
-
bindSessionManager
protected void bindSessionManager(AnnotatedBindingBuilder<org.apache.shiro.session.mgt.SessionManager> bind) - Overrides:
bindSessionManagerin classorg.apache.shiro.guice.web.ShiroWebModule
-
sessionTimeoutMinutes
-
cachingProvider
-
cacheManager
@Provides @Named("shiro") @Singleton public javax.cache.CacheManager cacheManager(@Named("shiro") javax.cache.spi.CachingProvider cachingProvider) -
cacheConfig
@Provides @Named("shiro") @Singleton public javax.cache.configuration.Configuration<Object,Object> cacheConfig(@Named("shiro") javax.cache.spi.CachingProvider cachingProvider, @Named("session.timeout") long sessionTimeoutMinutes) Cache configuration with session timeout -
webSecurityManager
@Provides @Singleton 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, AxelorJCacheManager cacheManager) -
callbackClientFinder
@Provides @Singleton public org.pac4j.core.client.finder.DefaultCallbackClientFinder callbackClientFinder(ClientListService clientListService)
-