Class AadB2cOidcLoginConfigurer

java.lang.Object
org.springframework.security.config.annotation.SecurityConfigurerAdapter<org.springframework.security.web.DefaultSecurityFilterChain,B>
org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer<AadB2cOidcLoginConfigurer,org.springframework.security.config.annotation.web.builders.HttpSecurity>
com.azure.spring.cloud.autoconfigure.aadb2c.AadB2cOidcLoginConfigurer
All Implemented Interfaces:
org.springframework.security.config.annotation.SecurityConfigurer<org.springframework.security.web.DefaultSecurityFilterChain,org.springframework.security.config.annotation.web.builders.HttpSecurity>

public class AadB2cOidcLoginConfigurer extends org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer<AadB2cOidcLoginConfigurer,org.springframework.security.config.annotation.web.builders.HttpSecurity>
Configure B2C OAUTH2 login properties.
See Also:
  • AbstractHttpConfigurer
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance of AadB2cOidcLoginConfigurer.
    AadB2cOidcLoginConfigurer(org.springframework.security.web.authentication.logout.LogoutSuccessHandler handler, org.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestResolver resolver, org.springframework.security.oauth2.client.endpoint.OAuth2AccessTokenResponseClient<org.springframework.security.oauth2.client.endpoint.OAuth2AuthorizationCodeGrantRequest> accessTokenResponseClient)
    Creates a new instance of AadB2cOidcLoginConfigurer.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.springframework.security.oauth2.client.endpoint.OAuth2AccessTokenResponseClient<org.springframework.security.oauth2.client.endpoint.OAuth2AuthorizationCodeGrantRequest>
    Gets the access token response client.
    void
    init(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
    Initialize the SecurityBuilder.

    Methods inherited from class org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer

    disable, getSecurityContextHolderStrategy, withObjectPostProcessor

    Methods inherited from class org.springframework.security.config.annotation.SecurityConfigurerAdapter

    addObjectPostProcessor, and, configure, getBuilder, postProcess, setBuilder

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AadB2cOidcLoginConfigurer

      public AadB2cOidcLoginConfigurer(AadB2cLogoutSuccessHandler handler, AadB2cAuthorizationRequestResolver resolver)
      Creates a new instance of AadB2cOidcLoginConfigurer.
      Parameters:
      handler - the AAD B2C logout success handler
      resolver - the AAD B2C authorization request resolver
    • AadB2cOidcLoginConfigurer

      public AadB2cOidcLoginConfigurer(org.springframework.security.web.authentication.logout.LogoutSuccessHandler handler, org.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestResolver resolver, org.springframework.security.oauth2.client.endpoint.OAuth2AccessTokenResponseClient<org.springframework.security.oauth2.client.endpoint.OAuth2AuthorizationCodeGrantRequest> accessTokenResponseClient)
      Creates a new instance of AadB2cOidcLoginConfigurer.
      Parameters:
      handler - the AAD B2C logout success handler
      resolver - the AAD B2C authorization request resolver
      accessTokenResponseClient - the AAD B2C access token response client
  • Method Details

    • init

      public void init(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception
      Initialize the SecurityBuilder.
      Specified by:
      init in interface org.springframework.security.config.annotation.SecurityConfigurer<org.springframework.security.web.DefaultSecurityFilterChain,org.springframework.security.config.annotation.web.builders.HttpSecurity>
      Overrides:
      init in class org.springframework.security.config.annotation.SecurityConfigurerAdapter<org.springframework.security.web.DefaultSecurityFilterChain,org.springframework.security.config.annotation.web.builders.HttpSecurity>
      Parameters:
      http - the http
      Throws:
      Exception - failed to initialize SecurityBuilder
    • accessTokenResponseClient

      protected org.springframework.security.oauth2.client.endpoint.OAuth2AccessTokenResponseClient<org.springframework.security.oauth2.client.endpoint.OAuth2AuthorizationCodeGrantRequest> accessTokenResponseClient()
      Gets the access token response client.
      Returns:
      the access token response client