Skip to content

Unable to set refresh token expiry time when building OAuth2AccessTokenResponse #9148

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
spc16670 opened this issue Oct 24, 2020 · 1 comment
Assignees
Labels
in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) status: duplicate A duplicate of another issue

Comments

@spc16670
Copy link

I am implementing OAuth2AccessTokenResponseClient and I do not see a way of setting refresh token expiry time on OAuth2AccessTokenResponse...

Describe the bug
Unable to set refresh token expiry time when building OAuth2AccessTokenResponse

To Reproduce
OAuth2AccessTokenResponse.withToken(accessToken)
.expiresIn(expiresIn)
.refreshToken(refreshToken).build();

Expected behavior
OAuth2AccessTokenResponse.withToken(accessToken)
.expiresIn(expiresIn)
.refreshToken(refreshToken)
.refreshTokenExpiresIn(refreshTokenExpiresIn)
.build();

@spc16670 spc16670 added status: waiting-for-triage An issue we've not yet triaged type: bug A general bug labels Oct 24, 2020
@jgrandja
Copy link
Contributor

@spc16670 This was just added last week. See #9146

@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 and removed status: waiting-for-triage An issue we've not yet triaged type: bug A general bug labels Oct 26, 2020
@jgrandja jgrandja self-assigned this Oct 26, 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
Projects
None yet
Development

No branches or pull requests

2 participants