Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new test module: azure-spring-boot-test-aad-resource-server #18412

Conversation

chenrujun
Copy link

@chenrujun chenrujun commented Dec 31, 2020

  1. Add new test module: azure-spring-boot-test-aad-resource-server.
  2. Update HOW_TO_RUN_AAD_INTEGRATION_TEST_IN_LOCALHOST.md about how to expose api.
  3. Update the required dependency about oauth2-client and oauth2-resource-server.
  4. Delete duplicated codes in aad integration test modules.
  5. Rename azure-spring-boot-sample-active-directory-resource-server-with-filter to azure-spring-boot-sample-active-directory-resource-server-by-filter.
  6. Rename azure-spring-boot-sample-active-directory-resource-server-stateless to azure-spring-boot-sample-active-directory-resource-server-by-filter-stateless.
  7. Move filter related test into a new module: azure-spring-boot-test-aad-resource-server-by-filter
  8. Update HOW_TO_RUN_AAD_INTEGRATION_TEST_IN_LOCALHOST.md

<groupId>org.springframework.security</groupId>
<artifactId>spring-security-oauth2-client</artifactId>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-oauth2-client</artifactId>
Copy link
Author

Choose a reason for hiding this comment

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

@yiliuTo ,
(cc: @saragluna , @backwind1233 , FYI)

we should use xxx-starter instead of xxx, because xxx-starter can include other necessary dependencies. Like spring-security-oauth2-jose.

Copy link
Member

Choose a reason for hiding this comment

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

FYI @wujack778.

```
[//]: # "{x-version-update-end}"

To use this starter in a resource server with OBO function, please add following packages:
Copy link
Author

@chenrujun chenrujun Dec 31, 2020

Choose a reason for hiding this comment

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

The dependency is different between resource-server and resource-server with obo function.

@chenrujun
Copy link
Author

/azp run java - spring - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@chenrujun
Copy link
Author

/azp run java - spring - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@chenrujun
Copy link
Author

Hi, @yiliuTo , @saragluna , @backwind1233 , please help to review this PR. 🙏

@chenrujun
Copy link
Author

/azp run java - spring - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@chenrujun
Copy link
Author

/azp run java - spring - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

chenrujun pushed a commit to alzimmermsft/azure-sdk-for-java that referenced this pull request Jan 5, 2021
chenrujun pushed a commit to alzimmermsft/azure-sdk-for-java that referenced this pull request Jan 5, 2021
@chenrujun
Copy link
Author

/azp run java - spring - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@chenrujun
Copy link
Author

Hi, @lzc-1997-abel , if you approve this PR, please comment LGTM. 🙏

@zhichengliu12581
Copy link
Contributor

LGTM

@chenrujun
Copy link
Author

/check-enforcer override

@chenrujun chenrujun merged commit 11af211 into Azure:master Jan 6, 2021
@chenrujun chenrujun deleted the create-new-test-module-azure-spring-boot-test-aad-resource-server branch January 6, 2021 02:02
@saragluna saragluna added the azure-spring-aad Spring active directory related issues. label Jan 8, 2021
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 azure-spring-aad Spring active directory related issues.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants