Class AADResourceServerConfiguration


  • @Configuration(proxyBeanMethods=false)
    @Conditional(ResourceServerCondition.class)
    public class AADResourceServerConfiguration
    extends Object

    The configuration will not be activated if no BearerTokenAuthenticationToken class provided.

    By default, creating a JwtDecoder through JwkKeySetUri will be auto-configured.
    • Constructor Detail

      • AADResourceServerConfiguration

        public AADResourceServerConfiguration()
    • Method Detail

      • jwtDecoder

        @Bean
        @ConditionalOnMissingBean(org.springframework.security.oauth2.jwt.JwtDecoder.class)
        public org.springframework.security.oauth2.jwt.JwtDecoder jwtDecoder()
        Use JwkKeySetUri to create JwtDecoder
        Returns:
        Get the jwtDecoder instance.
      • createDefaultValidator

        public List<org.springframework.security.oauth2.core.OAuth2TokenValidator<org.springframework.security.oauth2.jwt.Jwt>> createDefaultValidator()
        Creates a default validator.
        Returns:
        a default validator