Context
Since the WebSecurityConfigurerAdapter has been deprecated, then the below class should be updated to provide a new configurer for HTTP security,
|
public abstract class AadWebSecurityConfigurerAdapter extends WebSecurityConfigurerAdapter { |
|
public abstract class AadResourceServerWebSecurityConfigurerAdapter extends WebSecurityConfigurerAdapter { |
We should refer to the new configuer from feature/spring-boot-3 branch,
|
public class AadResourceServerHttpSecurityConfigurer extends AbstractHttpConfigurer<AadResourceServerHttpSecurityConfigurer, HttpSecurity> { |
|
public class AadWebApplicationHttpSecurityConfigurer extends AbstractHttpConfigurer<AadWebApplicationHttpSecurityConfigurer, HttpSecurity> { |
Goal
- Marked the AadXXAdapter as deprecated APIs.
- Provide the new way based on
AbstractHttpConfigurer for Azure AD autoconfigure.
Context
Since the
WebSecurityConfigurerAdapterhas been deprecated, then the below class should be updated to provide a new configurer for HTTP security,azure-sdk-for-java/sdk/spring/spring-cloud-azure-autoconfigure/src/main/java/com/azure/spring/cloud/autoconfigure/aad/AadWebSecurityConfigurerAdapter.java
Line 38 in 2c884a4
azure-sdk-for-java/sdk/spring/spring-cloud-azure-autoconfigure/src/main/java/com/azure/spring/cloud/autoconfigure/aad/AadResourceServerWebSecurityConfigurerAdapter.java
Line 22 in 2c884a4
We should refer to the new configuer from
feature/spring-boot-3branch,azure-sdk-for-java/sdk/spring/spring-cloud-azure-autoconfigure/src/main/java/com/azure/spring/cloud/autoconfigure/aad/AadResourceServerHttpSecurityConfigurer.java
Line 24 in a77e4b3
azure-sdk-for-java/sdk/spring/spring-cloud-azure-autoconfigure/src/main/java/com/azure/spring/cloud/autoconfigure/aad/AadWebApplicationHttpSecurityConfigurer.java
Line 37 in a77e4b3
Goal
AbstractHttpConfigurerfor Azure AD autoconfigure.