-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop SSE connections when the JWT token expires (#24)
With this PR, the SSE connection is closed when the JWT token used to authenticate actually expires. Previously, the JWT token expiration was only checked when the SSE connection is established. Benefits: - Improve overall security by preventing over-usage of JWT tokens, - Allow backends that issue tokens to have their own expiration policy (which must still be lower than the global max lifetime configured in Neurow). For exemple, it allows the backend to use an `exp` that matches the duration when users are actually considered as active on the frontend.
- Loading branch information
Showing
4 changed files
with
38 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters