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

Add timeout defaults to JwtDecoders #14890

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

MrJovanovic13
Copy link
Contributor

This PR adds reasonable timeouts to JwtDecoderProviderConfigurationUtils and NimbusJwtDecoder.
It's fixing Issue GH-14269

Since the RestOperations instance in JwkSetUriJwtDecoderBuilder is not static, I couldn't have used a static initializer block and had to use the following solution. I am open to suggestions if you think there is a better solution for this.

@pivotal-cla
Copy link

@MrJovanovic13 Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-cla
Copy link

@MrJovanovic13 Thank you for signing the Contributor License Agreement!

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 11, 2024
Copy link
Contributor

@jzheaux jzheaux left a comment

Choose a reason for hiding this comment

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

Thanks, @MrJovanovic13, for the PR! In addition to my inline feedback, will you also please update your commit message to be formatted like so:

Add Default Timeout to JwtDecoders RestTemplate

Any other description you'd like to add that wraps roughly at 60
characters

Closes gh-14269

In this way, it causes the automation to close the related ticket and the short title also makes it easy to browse in IDEs.

@jzheaux jzheaux added type: enhancement A general enhancement in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) and removed status: waiting-for-triage An issue we've not yet triaged labels Apr 17, 2024
@jzheaux jzheaux changed the title Add reasonable timeout to RestTemplate instances Add timeout defaults to JwtDecoders Apr 17, 2024
@MrJovanovic13
Copy link
Contributor Author

Thanks for the comments, I have resolved both of them now.

@MrJovanovic13 MrJovanovic13 requested a review from jzheaux April 17, 2024 21:42
@jzheaux jzheaux self-assigned this Apr 18, 2024
@jzheaux jzheaux added this to the 6.3.0 milestone Apr 18, 2024
@jzheaux jzheaux merged commit 24fd19b into spring-projects:main Apr 18, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants