Skip to content
Discussion options

You must be logged in to vote

Hi @benjamin-cohen-solal-believe,

You've identified a valid configuration issue, and your questions get to the heart of the problem.

Answering Your Questions

Q1: Why are these parameters required at configuration time for API strategy?

Short answer: They shouldn't be.
This is a design oversight in the Symfony bundle wrapper, as the underlying Auth0 PHP SDK it uses does correctly support strategy-specific requirements.

The API strategy only needs:

  • domain (to fetch JWKS for token signature validation)
  • audiences (to validate the token's aud claim)

Q2: Would it make sense to make them optional when "strategy": "api" is set?

Absolutely yes.

Current Workaround

Until this is fixed, you can use…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by benjamin-cohen-solal-believe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants