Skip to content
This repository has been archived by the owner on May 31, 2022. It is now read-only.

Update OAuth2AccessTokenJackson2Deserializer #1173

Closed
wants to merge 1 commit into from
Closed

Update OAuth2AccessTokenJackson2Deserializer #1173

wants to merge 1 commit into from

Conversation

alatushkin
Copy link
Contributor

Some services use expires_in: 0 to say token never expire
#1172

Some services use expires_in: 0  to say token never expire
@pivotal-issuemaster
Copy link

@alatushkin 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-issuemaster
Copy link

@alatushkin Thank you for signing the Contributor License Agreement!

Copy link
Contributor

@jgrandja jgrandja left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @alatushkin. Can you please add a test and we'll get this merged.

@@ -92,7 +92,7 @@ else if (OAuth2AccessToken.SCOPE.equals(name)) {

DefaultOAuth2AccessToken accessToken = new DefaultOAuth2AccessToken(tokenValue);
accessToken.setTokenType(tokenType);
if (expiresIn != null) {
if (expiresIn != null && expiresIn > 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please add a test

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi.
Sure. I'l try to do this in next three days.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jgrandja
Cant figure out how to edit this PR (original fork rep was removed)
So a make another one with this fix and test
#1862

@jgrandja
Copy link
Contributor

Closing in favour of #1862

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

None yet

4 participants