@Configuration(proxyBeanMethods=false) @ConditionalOnResource(resources="classpath:aad.enable.config") @EnableConfigurationProperties(value=AADAuthenticationProperties.class) @ConditionalOnClass(value=org.springframework.security.oauth2.server.resource.BearerTokenAuthenticationToken.class) public class AADResourceServerConfiguration extends Object
The configuration will not be activated if no BearerTokenAuthenticationToken class provided.
| Modifier and Type | Class and Description |
|---|---|
static class |
AADResourceServerConfiguration.DefaultAADResourceServerWebSecurityConfigurerAdapter
Default configuration class for using AAD authentication and authorization.
|
| Constructor and Description |
|---|
AADResourceServerConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
List<org.springframework.security.oauth2.core.OAuth2TokenValidator<org.springframework.security.oauth2.jwt.Jwt>> |
createDefaultValidator() |
org.springframework.security.oauth2.jwt.JwtDecoder |
jwtDecoder()
Use JwkKeySetUri to create JwtDecoder
|
@Bean @ConditionalOnMissingBean(value=org.springframework.security.oauth2.jwt.JwtDecoder.class) public org.springframework.security.oauth2.jwt.JwtDecoder jwtDecoder()
public List<org.springframework.security.oauth2.core.OAuth2TokenValidator<org.springframework.security.oauth2.jwt.Jwt>> createDefaultValidator()
Copyright © 2021 Microsoft Corporation. All rights reserved.