hello
is it possible to apply different plugin chain based on consumers?
like one consumer is authenticated with key-auth and Jwt ,but another consumer is authenticated only with key-auth .how can i achieve this?
hello
is it possible to apply different plugin chain based on consumers?
like one consumer is authenticated with key-auth and Jwt ,but another consumer is authenticated only with key-auth .how can i achieve this?
You can create multiple routes and each route has it’s own authentication plugin enabled.
I have configured two consumer for single routes. Both consumer having different basic auth and key auth information. Here both two key accepting combine request of api key.
Basic Auth: username: user1
password: pas1
Key Auth: key1
Basic Auth: username: user2
password: pas2
Key Auth: key2
My Api call is accepting with below auth credential. But it should not work because apikey (key2) is holding consumer 2 and basic auth (user1/pas1) holding consumer1.
www.domain.com/test?apikey=key2
Basic Auth: username: user1
password: pas1
My requirement is below
www.domain.com/test?apikey=key1
Basic Auth: username: user1
password: pas1
www.domain.com/test?apikey=key2
Basic Auth: username: user2
password: pas2