类 NacosAuthConfig

  • 所有已实现的接口:
    org.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,​org.springframework.security.config.annotation.web.builders.WebSecurity>, org.springframework.security.config.annotation.web.WebSecurityConfigurer<org.springframework.security.config.annotation.web.builders.WebSecurity>

    @EnableGlobalMethodSecurity(prePostEnabled=true)
    public class NacosAuthConfig
    extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
    Spring security config.
    作者:
    Nacos
    • 字段详细资料

      • SECURITY_IGNORE_URLS_SPILT_CHAR

        private static final java.lang.String SECURITY_IGNORE_URLS_SPILT_CHAR
        另请参阅:
        常量字段值
      • LOGIN_ENTRY_POINT

        private static final java.lang.String LOGIN_ENTRY_POINT
        另请参阅:
        常量字段值
      • TOKEN_BASED_AUTH_ENTRY_POINT

        private static final java.lang.String TOKEN_BASED_AUTH_ENTRY_POINT
        另请参阅:
        常量字段值
      • DEFAULT_ALL_PATH_PATTERN

        private static final java.lang.String DEFAULT_ALL_PATH_PATTERN
        另请参阅:
        常量字段值
      • PROPERTY_IGNORE_URLS

        private static final java.lang.String PROPERTY_IGNORE_URLS
        另请参阅:
        常量字段值
      • env

        private final org.springframework.core.env.Environment env
      • authConfigs

        private final com.alibaba.nacos.auth.config.AuthConfigs authConfigs
      • methodsCache

        private final com.alibaba.nacos.core.code.ControllerMethodsCache methodsCache
    • 构造器详细资料

      • NacosAuthConfig

        public NacosAuthConfig​(org.springframework.core.env.Environment env,
                               TokenManagerDelegate tokenProvider,
                               com.alibaba.nacos.auth.config.AuthConfigs authConfigs,
                               NacosUserDetailsServiceImpl userDetailsService,
                               org.springframework.beans.factory.ObjectProvider<LdapAuthenticationProvider> ldapAuthenticationProvider,
                               com.alibaba.nacos.core.code.ControllerMethodsCache methodsCache)
    • 方法详细资料

      • init

        @PostConstruct
        public void init()
        Init.
      • authenticationManagerBean

        @Bean(name="org.springframework.security.authenticationManager")
        public org.springframework.security.authentication.AuthenticationManager authenticationManagerBean()
                                                                                                    throws java.lang.Exception
        覆盖:
        authenticationManagerBean 在类中 org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
        抛出:
        java.lang.Exception
      • configure

        public void configure​(org.springframework.security.config.annotation.web.builders.WebSecurity web)
        指定者:
        configure 在接口中 org.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,​org.springframework.security.config.annotation.web.builders.WebSecurity>
        覆盖:
        configure 在类中 org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
      • configure

        protected void configure​(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth)
                          throws java.lang.Exception
        覆盖:
        configure 在类中 org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
        抛出:
        java.lang.Exception
      • configure

        protected void configure​(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
                          throws java.lang.Exception
        覆盖:
        configure 在类中 org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
        抛出:
        java.lang.Exception
      • passwordEncoder

        @Bean
        public org.springframework.security.crypto.password.PasswordEncoder passwordEncoder()
      • authenticationManager

        @Bean
        @Primary
        public IAuthenticationManager authenticationManager​(org.springframework.beans.factory.ObjectProvider<LdapAuthenticationManager> ldapAuthenticatoinManagerObjectProvider,
                                                            org.springframework.beans.factory.ObjectProvider<DefaultAuthenticationManager> defaultAuthenticationManagers,
                                                            com.alibaba.nacos.auth.config.AuthConfigs authConfigs)