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

Hotfix: Session expiration in userinfo must match access token expiration #414

Merged
merged 2 commits into from
Aug 19, 2024

Conversation

byewokko
Copy link
Collaborator

This is a hotfix. Proper solution will be introduced in #412 .

Issue

The exp claim in userinfo response does not correspond to Access Token validity (but rather incorrectly to Refresh Token validity). Since the UI relies on this claim, it cannot show the "Session expired" warning properly.

Solution

When retrieving session from the DB, its expiration is set to the expiration of the Access Token.

@byewokko byewokko added the bug Something isn't working label Aug 19, 2024
@byewokko byewokko self-assigned this Aug 19, 2024
@byewokko byewokko marked this pull request as ready for review August 19, 2024 14:45
@byewokko byewokko merged commit 1e68dc7 into main Aug 19, 2024
5 checks passed
@byewokko byewokko deleted the hotfix/userinfo-expiration-value branch August 19, 2024 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant