Skip to content

Commit

Permalink
Add: Generic JWS validation
Browse files Browse the repository at this point in the history
  • Loading branch information
acrusage-iaik committed Dec 9, 2024
1 parent db94468 commit d3c7e58
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ val joseCompliantSerializer by lazy {
prettyPrint = false
encodeDefaults = false
classDiscriminator = "type"

// TODO: unsure whether this is actually ok:
// When receiving a jwt one cannot just ignore unknown headers:
/**
* https://datatracker.ietf.org/doc/html/rfc7519
* 5. Verify that the resulting JOSE Header includes only parameters
* and values whose syntax and semantics are both understood and
* supported or that are specified as being ignored when not
* understood.
*/
ignoreUnknownKeys = true
}
}

0 comments on commit d3c7e58

Please sign in to comment.