Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util.jwt: Add support for ES512 (+ tests) | Matthew Wild | 2022-09-29 | 1 | -3/+22 |
| | |||||
* | util.jwt: All the algorithms (+ all the tests!) | Matthew Wild | 2022-07-02 | 1 | -19/+86 |
| | | | | Except 'none'. Not implementing that one. | ||||
* | util.jwt: Overhaul of tests to use declarative approach | Matthew Wild | 2022-07-02 | 1 | -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 maintenance | Matthew Wild | 2022-07-02 | 1 | -96/+7 |
| | |||||
* | util.jwt: Add support for RSA-based algorithms (RS256, PS256) | Matthew Wild | 2022-07-02 | 1 | -0/+170 |
| | |||||
* | util.jwt: Add support/tests for ES256 via improved API and using util.crypto | Matthew Wild | 2022-07-01 | 1 | -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 Alvefur | 2020-02-24 | 1 | -1/+1 |
| | |||||
* | util.jwt: Basic JSON Web Token library supporting HS256 tokens | Kim Alvefur | 2020-02-24 | 1 | -0/+20 |