Skip to content

OAuth2AccessTokenResponse.Builder.expiresIn works after withResponse #8766

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

Closed
wants to merge 1 commit into from

Conversation

benba
Copy link
Contributor

@benba benba commented Jun 26, 2020

OAuth2AccessTokenResponse.Builder.expiresIn was ignored when the Builder was initiated from withReponse, because OAuth2AccessTokenResponse.expiresAt was already initiated.

This PR reset OAuth2AccessTokenResponse.expiresAt status every time OAuth2AccessTokenResponse.Builder.expiresIn is called.

Closes gh-8702
I have submitted the CLA

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 26, 2020
@benba benba force-pushed the gh-8702-fix-expiresin branch from 8eaa7ec to 5eabbc6 Compare June 26, 2020 14:43
@benba benba force-pushed the gh-8702-fix-expiresin branch from 5eabbc6 to 756c34b Compare June 26, 2020 15:07
@jgrandja jgrandja added in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) status: duplicate A duplicate of another issue type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Jun 30, 2020
@jgrandja jgrandja added this to the 5.4.0-M2 milestone Jun 30, 2020
@jgrandja
Copy link
Contributor

Thanks for the PR @benba

FYI, I added a bit of polish to the test.
This is now in master.

@jgrandja jgrandja closed this Jun 30, 2020
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) status: duplicate A duplicate of another issue type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OAuth2AccessTokenResponse.expiresIn() is ignored when initialized from another response
3 participants