Why using the same upstream twice w/ different auth methods does not work? #11942
Replies: 1 comment 2 replies
-
I found a similar closed issue that might be relevant to your situation: Allow multiple authentication methods per route. This issue was resolved by a pull request that added the In your case, it seems like the issue might be related to how the routes are configured. Here are a few pointers that might help:
If you want to provide multiple authentication methods for the same backend resource, consider using the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
-
Hello, I've been struggling a bit configuring APISIX with multiple authentication methods for the same upstream. That's why I've decided to only protect one of my routes and leave the other "public" so that I can at least test that it works.
Running APISIX 3.11.0 in STANDALONE mode
Unfortunately that's not the case:
/api/*
works (/api/backend/version), successfully protected by OIDC consequently serving responses from the specified upstream/public/*
does NOT work responding with "Cannot GET /public/backend/version"I've tried/looked into the following things:
/public/*
route and did NOT work./*
and it DID work, but obviously I'd like a prefix :DI know it's pretty stupid to serve the same upstream both protected and public but for the sake of testing I've decided to pick this approach. It might very well be the sole reason why it's not working in the first place but I could not find any information regarding this. Ultimately I'd like to be able to setup mTLS authentication for the
/public/*
route, essentially providing two methods of authentication for the same backend resource.Would be greatly appreciated if I can get some pointers as to why this is not working in the first place.
Beta Was this translation helpful? Give feedback.
All reactions