Class AadWebApplicationConfiguration
java.lang.Object
com.azure.spring.cloud.autoconfigure.aad.configuration.AadWebApplicationConfiguration
@Configuration(proxyBeanMethods=false)
@Conditional(com.azure.spring.cloud.autoconfigure.aad.implementation.conditions.WebApplicationCondition.class)
public class AadWebApplicationConfiguration
extends Object
Configure the necessary beans used for Azure AD authentication and authorization.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Sample configuration to make AzureActiveDirectoryOAuth2UserService take effect. -
Constructor Summary
ConstructorDescriptionAadWebApplicationConfiguration
(org.springframework.boot.web.client.RestTemplateBuilder restTemplateBuilder) Creates a new instance ofAadWebApplicationConfiguration
. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.oauth2.client.userinfo.OAuth2UserService<org.springframework.security.oauth2.client.oidc.userinfo.OidcUserRequest,
org.springframework.security.oauth2.core.oidc.user.OidcUser> oidcUserService
(AadAuthenticationProperties properties) Declare OAuth2UserService bean.
-
Constructor Details
-
AadWebApplicationConfiguration
public AadWebApplicationConfiguration(org.springframework.boot.web.client.RestTemplateBuilder restTemplateBuilder) Creates a new instance ofAadWebApplicationConfiguration
.- Parameters:
restTemplateBuilder
- the RestTemplateBuilder
-
-
Method Details
-
oidcUserService
@Bean @ConditionalOnMissingBean public org.springframework.security.oauth2.client.userinfo.OAuth2UserService<org.springframework.security.oauth2.client.oidc.userinfo.OidcUserRequest,org.springframework.security.oauth2.core.oidc.user.OidcUser> oidcUserService(AadAuthenticationProperties properties) Declare OAuth2UserService bean.- Parameters:
properties
- the Azure AD authentication properties- Returns:
- OAuth2UserService bean
-