refined-architect-59368
09/05/2025, 10:59 AMoauth2_introspection authenticator.
We'd like to add support for API keys using the bearer_token where we'll validate against internal tools that can check the API keys.
Question: is it possible to have all the API consumers use the same header, and have Oathkeeper "fall through" to the next authenticator if the first one fails?E.g. • Request comes through with
Authorization: Bearer <some-value>
• Oathkeeper attempts bearer_token
◦ if it passes, request is allowed
◦ if it fails, it falls through to next authenticator
• Oathkeeper attempts oauth2_introspection
◦ if it passes, request is allowed
◦ if it fails, it request is deniedrefined-architect-59368
09/05/2025, 11:01 AMbearer_token authentication fails, the request is denied immediately.
jwt + oauth2_introspection seems to work
Interestingly, we also have jwt enabled here, so API consumers can send:
Authorization: Bearer <jwt>
In this case, if jwt fails, it's currently falling back to oauth2_introspectionrefined-architect-59368
09/05/2025, 4:57 PMbearer_token config that will help us accomplish our goal: https://github.com/ory/docs/pull/2288
The flag is prefix