| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously, if a JWT claim was present, it was validated regardless of
whether it was required.
However, according to the spec [1]:
"all claims that are not understood by implementations MUST be ignored"
which we interpret to mean that we should not attempt to validate
claims we don't require.
With this change, only claims listed in required checks are validated.
[1] https://tools.ietf.org/html/rfc7519#section-4
|
| |
|
|
|
| |
The config application depends on couch_log, so include it when
setting up and tearing down tests.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
All claims in the header and payload are verified if present. The
required_claims config setting is now separate and only causes CouchDB
to reject JWT tokens without those claims.
|
| | |
|
| |
|
|
|
| |
This mechanism is replaced by the much stronger tying of verification
algorithm to the key directly in the server config.
|
| | |
|
| | |
|
| |
|
|
|
| |
Decoding RSA and EC keys is a little expensive and we don't want to do
it for every single request. Add a cache that is invalidated on config change.
|
| | |
|
| |
|
|
|
| |
The "alg" check can now take list of algorithms that are supported,
which must be from the valid list of algorithms.
|
| |
|