Skip to content

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

Merged
byewokko merged 2 commits intomainfrom
hotfix/userinfo-expiration-value
Aug 19, 2024
Merged

Hotfix: Session expiration in userinfo must match access token expiration#414
byewokko merged 2 commits intomainfrom
hotfix/userinfo-expiration-value

Conversation

@byewokko
Copy link
Copy Markdown
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
@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