Commit Graph

9 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 369514589f Added woodpecker config
ci/woodpecker/push/woodpecker Pipeline failed Details
2023-04-21 01:46:52 +02:00
Chris c5dd773026 Added docblocks 2023-04-10 00:53:51 +02:00
Chris 822b796d40 phpstan fixes 2023-04-09 14:12:48 +02: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 88b6247e63 Added tests and fixed func name in PropertyBag 2021-02-11 13:25:28 +01:00
Chris 3899d191a4 Initial commit 2021-02-11 13:22:51 +01:00