# Custom realm and parsing request params

**URL:** <https://discuss.elastic.co/t/custom-realm-and-parsing-request-params/79775>\
**Category:** Elasticsearch\
**Created:** [March 23, 2017, 4:09pm UTC](https://discuss.elastic.co/t/custom-realm-and-parsing-request-params/79775 "2017-03-23T16:09:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Stacey\_Gammon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stacey_gammon/32/14025_2.png) [@Stacey\_Gammon](https://discuss.elastic.co/u/Stacey_Gammon)\
**Post date:** [March 24, 2017, 5:00pm UTC](https://discuss.elastic.co/t/custom-realm-and-parsing-request-params/79775/2 "2017-03-24T17:00:14Z")

</div>

I think you can do this with a reverse proxy to add the authentication headers.

I have walked through using an nginx proxy to auto-authenticate kibana hosted inside an iframe. nginx attaches a username and password to the custom header, which works, though I did not introduce a custom auth realm into the mix.

If your kibana and hosted iframe code is on the same domain, you might also be able to grab and set a cookie.

Here are a couple additional links that might prove useful:

- [Auto-authenticating to iframe-embedded Kibana dashboard](https://discuss.elastic.co/t/auto-authenticating-to-iframe-embedded-kibana-dashboard/46091/2)
- [Authenticating to iframe-embedded Kibana dashboard](https://discuss.elastic.co/t/authenticating-to-iframe-embedded-kibana-dashboard/71129/7)

---

_[View the full topic](https://discuss.elastic.co/t/custom-realm-and-parsing-request-params/79775)._
