Skip to content

Update aad default configuration condition#36124

Merged
Netyyyy merged 4 commits into
Azure:mainfrom
moarychan:moary/fix-aad-condition
Jul 28, 2023
Merged

Update aad default configuration condition#36124
Netyyyy merged 4 commits into
Azure:mainfrom
moarychan:moary/fix-aad-condition

Conversation

@moarychan

@moarychan moarychan commented Jul 27, 2023

Copy link
Copy Markdown
Member

Description

Since there are two ways to configure Spring Security filters, the default configuration does not consider the custom bean SecurityFilterChain.

See more from customer report: #32279 (comment)

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

@github-actions github-actions Bot added the azure-spring All azure-spring related issues label Jul 27, 2023
@azure-sdk

Copy link
Copy Markdown
Collaborator

API change check

APIView has identified API level changes in this PR and created following API reviews.

spring-cloud-azure-autoconfigure

Comment thread sdk/spring/CHANGELOG.md Outdated

#### Bugs Fixed
- Fix the issue that `AzureMessagingListenerAutoConfiguration` not included in spring.factories [#34690](https://github.com/Azure/azure-sdk-for-java/issues/34690), [#35716](https://github.com/Azure/azure-sdk-for-java/pull/35716).
- Fix AAD default configuration condition is not perfect [#36124](https://github.com/Azure/azure-sdk-for-java/pull/36124).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we be more specific with this changelog description.

import static com.azure.spring.cloud.autoconfigure.aad.implementation.WebApplicationContextRunnerUtils.resourceServerRunner;
import static org.assertj.core.api.Assertions.assertThat;

public class AadResourceServerConfigurationTests {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to be public

import static com.azure.spring.cloud.autoconfigure.aad.implementation.WebApplicationContextRunnerUtils.webApplicationContextRunner;
import static org.assertj.core.api.Assertions.assertThat;

public class AadWebApplicationConfigurationTests {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@moarychan
moarychan enabled auto-merge (squash) July 27, 2023 08:27
@moarychan
moarychan disabled auto-merge July 27, 2023 08:51
@Netyyyy

Netyyyy commented Jul 28, 2023

Copy link
Copy Markdown
Contributor

/check-enforcer override

@Netyyyy
Netyyyy merged commit b810a84 into Azure:main Jul 28, 2023
@moarychan
moarychan deleted the moary/fix-aad-condition branch October 10, 2023 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

azure-spring All azure-spring related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants