aboutsummaryrefslogtreecommitdiffstats
path: root/spec/util_jwt_spec.lua
Commit message (Collapse)AuthorAgeFilesLines
* util.jwt: Add support for ES512 (+ tests)Matthew Wild2022-09-291-3/+22
|
* util.jwt: All the algorithms (+ all the tests!)Matthew Wild2022-07-021-19/+86
| | | | Except 'none'. Not implementing that one.
* util.jwt: Overhaul of tests to use declarative approachMatthew Wild2022-07-021-115/+137
| | | | | Now we can consistently apply the same tests to every algorithm, instead of duplicating code.
* spec: Move test crypto keys to a shared file for clarity and easy maintenanceMatthew Wild2022-07-021-96/+7
|
* util.jwt: Add support for RSA-based algorithms (RS256, PS256)Matthew Wild2022-07-021-0/+170
|
* util.jwt: Add support/tests for ES256 via improved API and using util.cryptoMatthew Wild2022-07-011-0/+50
| | | | | | | | | | | In many cases code will be either signing or verifying. With asymmetric algorithms it's clearer and more efficient to just state that once, instead of passing keys (and possibly other parameters) with every sign/verify call. This also allows earlier validation of the key used. The previous (HS256-only) sign/verify methods continue to be exposed for backwards-compatibility.
* util.jwt: Remove unused return value from tests [luacheck]Kim Alvefur2020-02-241-1/+1
|
* util.jwt: Basic JSON Web Token library supporting HS256 tokensKim Alvefur2020-02-241-0/+20