-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for multiple auth methods for single consumer #435
Comments
To better understand your question, would you like to chain multiple authentication systems together? May I ask what's your use case? |
Chaining is currently what happens. I want to be able to use any of the available. I.e. use user/pass (aka basic) for one system (e.g manual tester/qa) OR keyauth (aka hash/header) with other system (production) |
Do you think it's reasonable to have two APIs on Kong? One production and one development, with different plugin configurations? |
Reasonable yes, unfortunately not really feasible. Main driver behind this setup is we are migrating to an API style auth (e.g. header, with some magic value (even if statically configured)). We were wondering if we could use kong as both LB frontend and cheap auth implementation. |
For the Load Balancer part, this is referenced to #157. When I mentioned "two APIs on Kong", doesn't necessarily mean two different APIs on your side, but two different API objects in Kong that point to one API on your side. Like: curl -d "name=test-production&public_dns=test-production.com&target_url=http://my.api/" ...
curl -d "name=test-staging&public_dns=test-staging.com&target_url=http://my.api/" ... Where both APIs point to the same |
I think it would be useful to enable optional authentication using any one of the available methods, for a single API. I say this would be useful because I have existing code authenticating using basic auth but would like to deploy new code using key auth and gradually migrate to that over time. In the meantime, having to choose one or the other is a little inflexible. |
Yes indeed it would be usefull for exactly this migration scenario |
+1 |
I am closing this in favor of #590 which I slightly updated to also reflect the concerns described here. |
Hi Guys,
While playing around i reached the following:
This leads to basic auth being unusable. E.g. when authing with user/pass combos it says i need a keyauth also. Is this intended effect?
Is it possible to configure stuff like this. E.g. auth either with basic or key.
The text was updated successfully, but these errors were encountered: