类 NacosAuthPluginCoreConfig

java.lang.Object
com.alibaba.nacos.plugin.auth.impl.configuration.core.NacosAuthPluginCoreConfig

public class NacosAuthPluginCoreConfig extends Object
Spring security config.
作者:
Nacos
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • init

      @PostConstruct public void init()
      Init.
    • authenticationConfigurer

      @Bean @ConditionalOnMissingBean @Conditional(ConditionOnInnerDatasource.class) public org.springframework.security.config.annotation.authentication.configuration.GlobalAuthenticationConfigurerAdapter authenticationConfigurer()
    • passwordEncoder

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

      @Bean @ConditionalOnMissingBean public IAuthenticationManager defaultAuthenticationManager(NacosUserService userDetailsService, TokenManagerDelegate jwtTokenManager, NacosRoleService roleService)
    • tokenManager

      @Bean @ConditionalOnProperty(value="nacos.core.auth.plugin.nacos.token.cache.enable", havingValue="false", matchIfMissing=true) public TokenManager tokenManager(AuthConfigs authConfigs)
    • cachedTokenManager

      @Bean @ConditionalOnProperty(value="nacos.core.auth.plugin.nacos.token.cache.enable", havingValue="true") public TokenManager cachedTokenManager(AuthConfigs authConfigs)
    • tokenManagerDelegate

      @Bean public TokenManagerDelegate tokenManagerDelegate(TokenManager tokenManager)