# Plugins basic-auth configure JSON

**URL:** <https://discuss.konghq.com/t/plugins-basic-auth-configure-json/944>\
**Category:** Questions\
**Created:** [May 8, 2018, 6:27am UTC](https://discuss.konghq.com/t/plugins-basic-auth-configure-json/944 "2018-05-08T06:27:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ismaelfre](https://avatars.discourse-cdn.com/v4/letter/i/85e7bf/32.png) [@ismaelfre](https://discuss.konghq.com/u/ismaelfre)\
**Post date:** [May 8, 2018, 6:27am UTC](https://discuss.konghq.com/t/plugins-basic-auth-configure-json/944/1 "2018-05-08T06:27:32Z")

</div>

Good morning, I want to secure an API with the basic-auth plugin, I create consumer and users correctly, but I can not get a consumer to access the API, all consumers access all my APIs.

Thank you.

---

<div class="post-metadata">

**Author:** ![jeremyjpj0916](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/jeremyjpj0916/32/1388_2.png) [@jeremyjpj0916](https://discuss.konghq.com/u/jeremyjpj0916)\
**Post date:** [May 8, 2018, 7:14am UTC](https://discuss.konghq.com/t/plugins-basic-auth-configure-json/944/2 "2018-05-08T07:14:13Z")

</div>

[https://getkong.org/plugins/acl/](https://getkong.org/plugins/acl/)

You need this plugin on (API || Service || Route) && Consumer

---

<div class="post-metadata">

**Author:** ![ismaelfre](https://avatars.discourse-cdn.com/v4/letter/i/85e7bf/32.png) [@ismaelfre](https://discuss.konghq.com/u/ismaelfre)\
**Post date:** [May 8, 2018, 3:38pm UTC](https://discuss.konghq.com/t/plugins-basic-auth-configure-json/944/3 "2018-05-08T15:38:31Z")

</div>

> [@jeremyjpj0916](#):
>
> You need this plugin on (API || Service || Route) && Consumer

Thank you very much. You could point me out how to configure it through json.
