Class AadB2cAutoConfiguration

java.lang.Object
com.azure.spring.cloud.autoconfigure.aadb2c.AadB2cAutoConfiguration

@Configuration(proxyBeanMethods=false) @ConditionalOnWebApplication(type=SERVLET) @ConditionalOnProperty(value="spring.cloud.azure.active-directory.b2c.enabled", havingValue="true") @Conditional(com.azure.spring.cloud.autoconfigure.aadb2c.implementation.AadB2cConditions.UserFlowCondition.class) @Import({AadB2cPropertiesConfiguration.class,AadB2cOAuth2ClientConfiguration.class}) public class AadB2cAutoConfiguration extends Object
Configure the necessary beans for AAD B2C authentication and authorization, and import AadB2cOAuth2ClientConfiguration class for AAD B2C OAuth2 client support.
  • Constructor Details

    • AadB2cAutoConfiguration

      public AadB2cAutoConfiguration()
  • Method Details

    • b2cOAuth2AuthorizationRequestResolver

      @Bean @ConditionalOnMissingBean public AadB2cAuthorizationRequestResolver b2cOAuth2AuthorizationRequestResolver(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository repository, AadB2cProperties properties)
      Declare AADB2CAuthorizationRequestResolver bean.
      Parameters:
      repository - The clientRegistrationRepository,
      properties - The AADB2CProperties,
      Returns:
      AADB2CAuthorizationRequestResolver bean
    • b2cLogoutSuccessHandler

      @Bean @ConditionalOnMissingBean public AadB2cLogoutSuccessHandler b2cLogoutSuccessHandler(AadB2cProperties properties)
      Declare AADB2CLogoutSuccessHandler bean.
      Parameters:
      properties - The AADB2CProperties
      Returns:
      AADB2CLogoutSuccessHandler bean
    • b2cLoginConfigurer

      @Bean @ConditionalOnMissingBean public AadB2cOidcLoginConfigurer b2cLoginConfigurer(AadB2cLogoutSuccessHandler handler, AadB2cAuthorizationRequestResolver resolver)
      Declare AADB2COidcLoginConfigurer bean.
      Parameters:
      handler - the AAD B2C logout success handler
      resolver - the AAD B2C authorization request resolver
      Returns:
      AADB2COidcLoginConfigurer bean