Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Lax validation when parts are not specified #65

Open
StummeJ opened this issue Dec 9, 2020 · 1 comment
Open

Lax validation when parts are not specified #65

StummeJ opened this issue Dec 9, 2020 · 1 comment

Comments

@StummeJ
Copy link

StummeJ commented Dec 9, 2020

There are a few places where the validation feels too strict.

  1. Requiring an clientId is arbitrary when checking a token in an API and should be allowed to be skipped.
  1. Even when not setting an audience the check still fails due to the token having an audience. The engineer should be able to say they do not care about the audience. (this actually extends to all 3 checks)
@bretterer
Copy link
Contributor

Hi @StummeJ. Thanks for the report here. Could you give me a little more information on what you are trying to do with these? As far as I can tell, the verifier is working this way as designed, however, I would love to hear your use case to see if we can find a solution to loosen up the restrictions here.

Would you be able to provide a code sample and use case for us to look into here?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants