Class CasManagementWebAppConfiguration

  • All Implemented Interfaces:
    org.springframework.web.servlet.config.annotation.WebMvcConfigurer

    @Configuration("casManagementWebAppConfiguration")
    @EnableConfigurationProperties({org.apereo.cas.configuration.CasConfigurationProperties.class,org.apereo.cas.configuration.CasManagementConfigurationProperties.class})
    public class CasManagementWebAppConfiguration
    extends java.lang.Object
    implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    Since:
    5.0.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addInterceptors​(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)  
      void addResourceHandlers​(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)  
      org.springframework.web.servlet.HandlerInterceptor casManagementLocaleChangeInterceptor()  
      org.springframework.web.servlet.LocaleResolver casManagementLocaleResolver()  
      org.pac4j.core.config.Config casManagementSecurityConfiguration()  
      org.springframework.web.servlet.handler.HandlerInterceptorAdapter casManagementSecurityInterceptor()  
      org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter casManagementSimpleControllerHandlerAdapter()  
      org.thymeleaf.spring5.templateresolver.SpringResourceTemplateResolver casManagementTemplateResolver()  
      org.apereo.cas.mgmt.web.DefaultCasManagementEventListener defaultCasManagementEventListener()  
      org.apereo.cas.mgmt.controller.ForwardingController forwardingController()  
      java.lang.String getDefaultCallbackUrl​(org.apereo.cas.configuration.CasConfigurationProperties casProperties, org.springframework.boot.autoconfigure.web.ServerProperties serverProperties)
      Gets default callback url.
      org.springframework.web.servlet.handler.SimpleUrlHandlerMapping handlerMapping()  
      protected org.springframework.web.servlet.mvc.Controller rootController()  
      java.util.Collection<org.apereo.cas.oidc.claims.BaseOidcScopeAttributeReleasePolicy> userDefinedScopeBasedAttributeReleasePolicies()  
      org.apereo.cas.mgmt.controller.ViewController viewController()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer

        addArgumentResolvers, addCorsMappings, addFormatters, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
    • Constructor Detail

      • CasManagementWebAppConfiguration

        public CasManagementWebAppConfiguration()
    • Method Detail

      • rootController

        @Bean
        protected org.springframework.web.servlet.mvc.Controller rootController()
      • handlerMapping

        @Bean
        @Lazy
        public org.springframework.web.servlet.handler.SimpleUrlHandlerMapping handlerMapping()
      • casManagementSecurityInterceptor

        @Bean
        public org.springframework.web.servlet.handler.HandlerInterceptorAdapter casManagementSecurityInterceptor()
      • casManagementLocaleResolver

        @ConditionalOnMissingBean(name="localeResolver")
        @Bean
        public org.springframework.web.servlet.LocaleResolver casManagementLocaleResolver()
      • casManagementLocaleChangeInterceptor

        @RefreshScope
        @Bean
        public org.springframework.web.servlet.HandlerInterceptor casManagementLocaleChangeInterceptor()
      • addInterceptors

        public void addInterceptors​(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
        Specified by:
        addInterceptors in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
      • casManagementSimpleControllerHandlerAdapter

        @Bean
        public org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter casManagementSimpleControllerHandlerAdapter()
      • userDefinedScopeBasedAttributeReleasePolicies

        @RefreshScope
        @Bean
        public java.util.Collection<org.apereo.cas.oidc.claims.BaseOidcScopeAttributeReleasePolicy> userDefinedScopeBasedAttributeReleasePolicies()
      • defaultCasManagementEventListener

        @RefreshScope
        @Bean
        public org.apereo.cas.mgmt.web.DefaultCasManagementEventListener defaultCasManagementEventListener()
      • casManagementTemplateResolver

        @Bean
        public org.thymeleaf.spring5.templateresolver.SpringResourceTemplateResolver casManagementTemplateResolver()
      • addResourceHandlers

        public void addResourceHandlers​(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
        Specified by:
        addResourceHandlers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
      • viewController

        @Bean
        public org.apereo.cas.mgmt.controller.ViewController viewController()
      • forwardingController

        @Bean
        public org.apereo.cas.mgmt.controller.ForwardingController forwardingController()
      • casManagementSecurityConfiguration

        @ConditionalOnMissingBean(name="casManagementSecurityConfiguration")
        @Bean
        public org.pac4j.core.config.Config casManagementSecurityConfiguration()
      • getDefaultCallbackUrl

        public java.lang.String getDefaultCallbackUrl​(org.apereo.cas.configuration.CasConfigurationProperties casProperties,
                                                      org.springframework.boot.autoconfigure.web.ServerProperties serverProperties)
        Gets default callback url.
        Parameters:
        casProperties - the cas properties
        serverProperties - the server properties
        Returns:
        the default callback url