How to configure multiple consumer for single routes with Basic auth and Key auth

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.

Consumer 1:

Basic Auth: username: user1
password: pas1
Key Auth: key1

Consumer 2:

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

1 Like

© 2018 Kong Inc.    Terms  •  Privacy  •  FAQ