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

**URL:** <https://discuss.konghq.com/t/how-to-configure-multiple-consumer-for-single-routes-with-basic-auth-and-key-auth/4079>\
**Category:** General\
**Created:** [July 25, 2019, 10:18am UTC](https://discuss.konghq.com/t/how-to-configure-multiple-consumer-for-single-routes-with-basic-auth-and-key-auth/4079 "2019-07-25T10:18:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thiraj89](https://avatars.discourse-cdn.com/v4/letter/t/3bc359/32.png) [@thiraj89](https://discuss.konghq.com/u/thiraj89)\
**Post date:** [July 25, 2019, 10:18am UTC](https://discuss.konghq.com/t/how-to-configure-multiple-consumer-for-single-routes-with-basic-auth-and-key-auth/4079/1 "2019-07-25T10:18:15Z")

</div>

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](http://www.domain.com/test?apikey=key2)  
Basic Auth: username: user1  
password: pas1

My requirement is below

[www.domain.com/test?apikey=key1](http://www.domain.com/test?apikey=key1)  
Basic Auth: username: user1  
password: pas1

[www.domain.com/test?apikey=key2](http://www.domain.com/test?apikey=key2)  
Basic Auth: username: user2  
password: pas2
