Checklist
Describe the problem you'd like to have solved
The verify function in class Omniauth::Auth0::JWTValidator only validates checks that client_id is included in the audience of the given token. This works for validation of id token, but not for access token. Users may want to manually verify any tokens since this class is publicly accessible.
Describe the ideal solution
It could be useful to either have 2 functions (e.g. verifyIdToken and a more general verify) or set the client_id as validation parameters when calling verify on id tokens.
Alternatives and current workarounds
Currently one can only use the decode function of said class and verify claims on their own.
Additional context
No response
Checklist
Describe the problem you'd like to have solved
The
verifyfunction in classOmniauth::Auth0::JWTValidatoronly validates checks that client_id is included in the audience of the given token. This works for validation of id token, but not for access token. Users may want to manually verify any tokens since this class is publicly accessible.Describe the ideal solution
It could be useful to either have 2 functions (e.g.
verifyIdTokenand a more generalverify) or set the client_id as validation parameters when calling verify on id tokens.Alternatives and current workarounds
Currently one can only use the
decodefunction of said class and verify claims on their own.Additional context
No response