To be able to support JWE (payload encryption), It will be nice to have configuration added for determining the location of certain registered claims in header or in payload.
Example:
token {
algorithm {
name = "RS256"
private-key-pem-path = "src/test/secrets/rsa-private.pem"
}
// algorithm {
// name = "HMAC256"
// secret = "secret" When using HMAC single secret is required for both verifier and issuer
// }
encrypt {
secret = "password"
}
issuer {
registered {
issuer-claim-in-payload = "issuer" // Added in payload
subject-claim-in-header = "subject" // Added in header
...
To be able to support JWE (payload encryption), It will be nice to have configuration added for determining the location of certain registered claims in header or in payload.
Example: