# A way to pass on kibana's authentication credentials from a python flask app?

**URL:** https://discuss.elastic.co/t/a-way-to-pass-on-kibanas-authentication-credentials-from-a-python-flask-app/290100
**Category:** Kibana
**Created:** [November 24, 2021, 6:21pm UTC](https://discuss.elastic.co/t/a-way-to-pass-on-kibanas-authentication-credentials-from-a-python-flask-app/290100 "2021-11-24T18:21:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Shreesh\_Narayanan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shreesh_narayanan/32/87312_2.png) [@Shreesh\_Narayanan](https://discuss.elastic.co/u/Shreesh_Narayanan)
#### Post date: [November 24, 2021, 6:21pm UTC](https://discuss.elastic.co/t/a-way-to-pass-on-kibanas-authentication-credentials-from-a-python-flask-app/290100/1 "2021-11-24T18:21:43Z")

</div>

Hello,

I have a Flask app that redirects to an kibana instance that populates dashboards and works as expected . However,i'm wondering if there's a way to pass on kibana's credentials via the APP so that the kibana doesnt show the login prompt when there's a new user .

The app redirects to kibana using the iframe (from share option on kibana) , it works fine when we supply the credentials , but i want to know if there's a way to automate this .

---

<div class="post-metadata">

### Author: ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)
#### Post date: [December 16, 2021, 1:45pm UTC](https://discuss.elastic.co/t/a-way-to-pass-on-kibanas-authentication-credentials-from-a-python-flask-app/290100/2 "2021-12-16T13:45:40Z")

</div>

Hi @Shreesh_Narayanan ,

Would [sharing with anonymous access](https://www.elastic.co/guide/en/kibana/current/kibana-authentication.html#anonymous-access-and-embedding) be a viable option for you? If not, then you'd need to put a proxy in front of Kibana that would send proper credentials via `Authorization: Basic base64(username:password)` to Kibana. We describe various options here: [Authentication in Kibana | Kibana Guide [7.16] | Elastic](https://www.elastic.co/guide/en/kibana/current/kibana-authentication.html#embedded-content-authentication)

Best,  
Oleg

---

<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: [January 13, 2022, 1:46pm UTC](https://discuss.elastic.co/t/a-way-to-pass-on-kibanas-authentication-credentials-from-a-python-flask-app/290100/3 "2022-01-13T13:46:19Z")

</div>

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