jwt
jwt copied to clipboard
Validate multiple subjects
https://github.com/golang-jwt/jwt/blob/5ec246c074b71790eec1f2e05b54daf6ec29ec5f/parser_option.go#L97-L105
Would it be possible to add a convenience validator method jwt.WithSubjects(subjects []string) that returns an error if the request's subject doesn't match any of the subjects?
I'm curious about the use case for checking against multiple subjects, since typically you'd have a JWT representing claims about one specific subject. Delegation?