# How can I pass kibana authentication credentials from python application?

**URL:** https://discuss.elastic.co/t/how-can-i-pass-kibana-authentication-credentials-from-python-application/338504
**Category:** Kibana
**Created:** [July 17, 2023, 6:52am UTC](https://discuss.elastic.co/t/how-can-i-pass-kibana-authentication-credentials-from-python-application/338504 "2023-07-17T06:52:49Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Rushi\_Bagul](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rushi_bagul/32/122786_2.png) [@Rushi\_Bagul](https://discuss.elastic.co/u/Rushi_Bagul)
#### Post date: [July 17, 2023, 6:52am UTC](https://discuss.elastic.co/t/how-can-i-pass-kibana-authentication-credentials-from-python-application/338504/1 "2023-07-17T06:52:49Z")

</div>

Hello,,  
I have python application, In which I have iframe kibana dashboard . If I am log in that python app at same time log in iframe kibana dashboard as well. User not again log in kibana dashboard. How can I manage this please help me regarding that . I am new on elasticsearch platform.

---

<div class="post-metadata">

### Author: ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)
#### Post date: [July 17, 2023, 4:11pm UTC](https://discuss.elastic.co/t/how-can-i-pass-kibana-authentication-credentials-from-python-application/338504/2 "2023-07-17T16:11:03Z")

</div>

Kibana Single Sign-On options are listed on this documentation page:

> **[Authentication in Kibana | Kibana Guide \[8.8\] | Elastic](https://www.elastic.co/guide/en/kibana/current/kibana-authentication.html)**

---

<div class="post-metadata">

### Author: ![Rushi\_Bagul](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rushi_bagul/32/122786_2.png) [@Rushi\_Bagul](https://discuss.elastic.co/u/Rushi_Bagul)
#### Post date: [July 19, 2023, 9:22am UTC](https://discuss.elastic.co/t/how-can-i-pass-kibana-authentication-credentials-from-python-application/338504/3 "2023-07-19T09:22:26Z")

</div>

Thank you @jsanz for this approach.  
But I want use log in API for that ,so how can I use that?

---

<div class="post-metadata">

### Author: ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)
#### Post date: [July 19, 2023, 9:36am UTC](https://discuss.elastic.co/t/how-can-i-pass-kibana-authentication-credentials-from-python-application/338504/4 "2023-07-19T09:36:38Z")

</div>

If you refer to API keys, they are not intended for web browsers, as stated in this section of [the documentation](https://www.elastic.co/guide/en/kibana/current/kibana-authentication.html#http-authentication):

> API keys are intended for programmatic access to Kibana and Elasticsearch. Do not use API keys to authenticate access via a web browser.

---

<div class="post-metadata">

### Author: ![Rushi\_Bagul](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rushi_bagul/32/122786_2.png) [@Rushi\_Bagul](https://discuss.elastic.co/u/Rushi_Bagul)
#### Post date: [July 19, 2023, 12:05pm UTC](https://discuss.elastic.co/t/how-can-i-pass-kibana-authentication-credentials-from-python-application/338504/5 "2023-07-19T12:05:33Z")

</div>

@jsanz I am not use API key . We want kibana dashboard iframe rendered in our python application. To authenticate user we want log in rest API and use cookies to store. After log in python application user should be log in iframed Kibana dashboard as well . I am new on elasticsearch platform so I don't know how to manage this?

---

<div class="post-metadata">

### Author: ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)
#### Post date: [July 19, 2023, 12:54pm UTC](https://discuss.elastic.co/t/how-can-i-pass-kibana-authentication-credentials-from-python-application/338504/6 "2023-07-19T12:54:22Z")

</div>

The only mechanism for your users to log automatically to Kibana is with Single Sign On options I already shared. Please refer to the documentation.

---

<div class="post-metadata">

### Author: ![Rushi\_Bagul](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rushi_bagul/32/122786_2.png) [@Rushi\_Bagul](https://discuss.elastic.co/u/Rushi_Bagul)
#### Post date: [July 19, 2023, 1:25pm UTC](https://discuss.elastic.co/t/how-can-i-pass-kibana-authentication-credentials-from-python-application/338504/7 "2023-07-19T13:25:21Z")

</div>

@jsanz thank you for this approach. I will try Single sign on.

---

<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: [August 16, 2023, 1:25pm UTC](https://discuss.elastic.co/t/how-can-i-pass-kibana-authentication-credentials-from-python-application/338504/8 "2023-08-16T13:25:23Z")

</div>

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