-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Validate autoendpoint JWT tokens (#154)
* Use an enum for API version and add VapidHeaderWithKey * Perform expiration time validation on the JWT * Perform JWT claims extraction * Use the jsonwebtoken library for JWT validation * Add back VapidError::FutureExpirationToken and associated check The JWT library doesn't handle this error. * Record another metric for vapid version * Simplify handling of VAPID v2 in extract_public_key Closes #103
- Loading branch information
1 parent
8efa42c
commit 04fee7f
Showing
6 changed files
with
179 additions
and
38 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.