Hi,
I've configured an API key method and an authorization through Auth0.
Both work fine but not when i try to combine them.
Below is my config for a endpoint.
/api/v1/ping:
get:
summary: Ping the service
security:
- apikey: []
- auth0_jwk: []
This is the security definition for the API key
apikey:
type: "apiKey"
name: "x-api-key"
in: "header"
According to the Open Api specification this should be a OR, so either the API Key or the auth0 needs to be valid.
But it looks like it is checking the auth0 configuration even though I provided a valid API key.
What I already tried.
- Removed the auth0_jwk from the security, then it works
- Added an second API key definition (in query) then I can use both (like how i want it)
Do you have any clue how to setup authentication using an API key and also using auth0?
Regards,