-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Create new test module: azure-spring-boot-test-aad-resource-server #18412
Conversation
chenrujun
commented
Dec 31, 2020
•
edited
Loading
edited
- Add new test module: azure-spring-boot-test-aad-resource-server.
- Update HOW_TO_RUN_AAD_INTEGRATION_TEST_IN_LOCALHOST.md about how to expose api.
- Update the required dependency about oauth2-client and oauth2-resource-server.
- Delete duplicated codes in aad integration test modules.
- Rename azure-spring-boot-sample-active-directory-resource-server-with-filter to azure-spring-boot-sample-active-directory-resource-server-by-filter.
- Rename azure-spring-boot-sample-active-directory-resource-server-stateless to azure-spring-boot-sample-active-directory-resource-server-by-filter-stateless.
- Move filter related test into a new module: azure-spring-boot-test-aad-resource-server-by-filter
- Update HOW_TO_RUN_AAD_INTEGRATION_TEST_IN_LOCALHOST.md
2. Update HOW_TO_RUN_AAD_INTEGRATION_TEST_IN_LOCALHOST.md about how to expose api.
<groupId>org.springframework.security</groupId> | ||
<artifactId>spring-security-oauth2-client</artifactId> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-oauth2-client</artifactId> |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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
.
/azp run java - spring - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
…est-aad-resource-server
…d-resource-server-by-filter
…-filter to azure-spring-boot-sample-active-directory-resource-server-by-filter.
…eless to azure-spring-boot-sample-active-directory-resource-server-by-filter-stateless.
…zure-spring-boot-test-aad-resource-server-by-filter.
…ing" folder. 2. Add commands about run test of other aad integration test modules.
/azp run java - spring - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
Hi, @yiliuTo , @saragluna , @backwind1233 , please help to review this PR. 🙏 |
…est-aad-resource-server
/azp run java - spring - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run java - spring - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
...er-by-filter/src/test/java/com/azure/test/aad/filter/stateful/AADAuthenticationFilterIT.java
Show resolved
Hide resolved
/azp run java - spring - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
Hi, @lzc-1997-abel , if you approve this PR, please comment |
LGTM |
/check-enforcer override |