Skip to content

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

@spc16670

Description

@spc16670

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();

Metadata

Metadata

Assignees

Labels

in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)status: duplicateA duplicate of another issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions