feat: Implement claim validation

Implements initial validations of token claims. The included
validations are:

* validation of token issuer
* validation of token audience
* validation that a subject is set
* validation that a token is not expired
This commit is contained in:
Vincent Ambo 2018-09-04 12:33:30 +02:00
parent ae409995ca
commit dd527ecdf1
2 changed files with 109 additions and 7 deletions

View file

@ -4,8 +4,8 @@ version = "0.1.0"
authors = ["Vincent Ambo <vincent@aprila.no>"]
[dependencies]
base64 = "0.9"
openssl = "0.10"
serde = "1.0"
serde_json = "1.0"
serde_derive = "1.0"
base64 = "0.9"
serde_json = "1.0"