# Setting up APIKey Authentication

**URL:** <https://discuss.elastic.co/t/setting-up-apikey-authentication/67226>\
**Category:** Elasticsearch\
**Created:** [November 25, 2016, 11:08pm UTC](https://discuss.elastic.co/t/setting-up-apikey-authentication/67226 "2016-11-25T23:08:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jbrar](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@Jbrar](https://discuss.elastic.co/u/Jbrar)\
**Post date:** [November 25, 2016, 11:08pm UTC](https://discuss.elastic.co/t/setting-up-apikey-authentication/67226/1 "2016-11-25T23:08:10Z")

</div>

In looking at the ElasticLowLevelClient [documentation](https://www.elastic.co/guide/en/elasticsearch/client/net-api/current/connecting.html) there is an example showing connecting to a cluster with using an apiKey and not using username/password via BasicAuthentication. I haven't been able to find the cluster setup documentation which shows how to set up apikey authentication for connections. Lil help? Thanks.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 26, 2016, 7:01am UTC](https://discuss.elastic.co/t/setting-up-apikey-authentication/67226/2 "2016-11-26T07:01:37Z")

</div>

It's part of Security which comes with XPack commercial plugin. Which you can test for free.

---

<div class="post-metadata">

**Author:** ![Jbrar](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@Jbrar](https://discuss.elastic.co/u/Jbrar)\
**Post date:** [November 28, 2016, 3:41pm UTC](https://discuss.elastic.co/t/setting-up-apikey-authentication/67226/3 "2016-11-28T15:41:46Z")

</div>

Fantastic. Is there any documentation for how to set this up using the XPack plugin? If so could you please provide a url as to where it can be found?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 26, 2016, 3:41pm UTC](https://discuss.elastic.co/t/setting-up-apikey-authentication/67226/4 "2016-12-26T15:41:58Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
