Checklist
Describe the problem you'd like to have solved
It seems possible to avoid discovery altogether by specifying issuer instead of issuerBaseURL, and this is perfectly fine with symmetrical algorithms. However, it seems impossible to provide an asymmetrical algorithm and not specify issuerBaseURL.
Describe the ideal solution
I would like to pass the public key explicitly without doing discovery. So something like defining issuer, audience, and then public key in secret. The library jose seems to allow passing the public key already, but we never get here because node-oauth2-jwt-bearer will throw before that during validation.
Alternatives and current workarounds
Currently not possible.
Additional context
No response
Checklist
Describe the problem you'd like to have solved
It seems possible to avoid discovery altogether by specifying
issuerinstead ofissuerBaseURL, and this is perfectly fine with symmetrical algorithms. However, it seems impossible to provide an asymmetrical algorithm and not specifyissuerBaseURL.Describe the ideal solution
I would like to pass the public key explicitly without doing discovery. So something like defining
issuer,audience, and then public key insecret. The libraryjoseseems to allow passing the public key already, but we never get here becausenode-oauth2-jwt-bearerwill throw before that during validation.Alternatives and current workarounds
Currently not possible.
Additional context
No response