Commit Graph

5 Commits

Author SHA1 Message Date
Chris f83998e6c7 Additional checks for validity and in validator
* Properly check nbf and exp claims in token to determine simple
  validity.
* Properly check nbf and exp claims in validator and throw exceptions
  if expired/not yet valid.
2024-03-11 23:34:19 +01:00
Chris 953e831d84 Fixed capitalization, tests 2023-04-09 02:40:21 +02:00
Chris 7753853e58 Added support for validating token issuer and audience
* Use requireIssuer() and requireAudience() on the JwtValidator to make sure
  that the token is for what you expect it to be for.
* A setAll() method has been added to property bag, applying but not overriding
  values.
* Added tests for JwtValidator.
2021-02-16 18:25:29 +01:00
Chris 9d85e2ccef Fixed claim check in JwtValidator
* Removed the addRequiredClaimWithValue() method, as checking
  the value should be up to the implementation.
2021-02-11 13:32:10 +01:00
Chris 3899d191a4 Initial commit 2021-02-11 13:22:51 +01:00