fix: jwk-set-cache related properties are not take effect#49356
Open
rujche wants to merge 14 commits into
Open
fix: jwk-set-cache related properties are not take effect#49356rujche wants to merge 14 commits into
jwk-set-cache related properties are not take effect#49356rujche wants to merge 14 commits into
Conversation
6 tasks
jwk-set-cache related properties are not take effect
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the Spring Cloud Azure AAD resource server JWT decoder construction so JWK retrieval uses a Nimbus JWKSource configured with the library’s cache-related properties, addressing the reported issue where JWK cache settings were not being honored.
Changes:
- Switched AAD resource server
NimbusJwtDecodercreation to usewithJwkSource(...)and appliedjwk-set-cache-*properties viaJWKSourceBuilder. - Added/updated tests to assert the configured JWK cache durations and to continue validating HTTP timeout wiring.
- Updated Spring module CHANGELOG entries (includes an entry that appears unrelated to this PR’s code changes).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| sdk/spring/spring-cloud-azure-autoconfigure/src/main/java/com/azure/spring/cloud/autoconfigure/implementation/aad/configuration/AadResourceServerConfiguration.java | Build NimbusJwtDecoder from a Nimbus JWKSource configured with resource retrieval timeouts and JWK cache durations. |
| sdk/spring/spring-cloud-azure-autoconfigure/src/test/java/com/azure/spring/cloud/autoconfigure/implementation/aad/configuration/AadResourceServerConfigurationTests.java | Added assertions verifying default/custom JWK cache durations and updated timeout verification to follow the new JWK source structure. |
| sdk/spring/CHANGELOG.md | Added a JWK cache-related release note; also modified another bullet that appears unrelated to the PR’s scope. |
Member
Author
|
/azp run java - spring - tests |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Member
Author
|
@copilot resolve the merge conflicts in this pull request |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…e/azure-sdk-for-java into rujche/main/fix-bug-about-jwk-cache
Member
Author
|
/azp run java - spring - tests |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Member
Author
|
/azp run java - spring - tests |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Member
Author
|
/azp run java - spring - tests |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Member
Author
|
/azp run java - spring - tests |
|
Azure Pipelines successfully started running 1 pipeline(s). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines