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.
  • Constructor Details

    • AadWebApplicationConfiguration

      public AadWebApplicationConfiguration(org.springframework.boot.web.client.RestTemplateBuilder restTemplateBuilder)
      Creates a new instance of AadWebApplicationConfiguration.
      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