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

Bugfix invalid accesstoken #311

Closed
wants to merge 3 commits into from
Closed

Bugfix invalid accesstoken #311

wants to merge 3 commits into from

Conversation

gvermoen
Copy link
Contributor

In org.springframework.social.oauth2.AccessGrant, the expireTime is calculated like this:
this.expireTime = expiresIn != null ? System.currentTimeMillis() + expiresIn * 1000L : null;

The current implementation always retrieves a new access token (well unless it actually expired, which is even worse).

Btw, why isn't the refresh token used to refresh the access token, using the OAuth 2.0 Refresh Token Grant?

@gvermoen gvermoen closed this Mar 25, 2021
@gvermoen
Copy link
Contributor Author

sorry didnt update from master, will create new pr

@gvermoen gvermoen deleted the bugfix-invalid-accesstoken branch March 25, 2021 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant