Closed whitehead1415 closed 7 years ago
Hi. You do:
let
audPred :: StringOrURI -> Bool
audPred = (`elem` ["valid", "audiences"])
myValidationSettings = set audiencePredicate audPred defaultValidationSettings
Set whatever audiencePredicate
you need.
I'll update the example
program with a trivial example of doing this (probably
by optionally reading valid audience(s) from trailing CLI arg(s).
In the example it shows verifying a jwt.
How would one construct an alternative
JWTValidationSettings
than whatdefaultJWTValidationSettings
gives you?In particular I am trying to verify that the audience is correct.