# Auto login with authentication api 6.7.1

**URL:** https://discuss.elastic.co/t/auto-login-with-authentication-api-6-7-1/206431
**Category:** Kibana
**Created:** [November 4, 2019, 3:45pm UTC](https://discuss.elastic.co/t/auto-login-with-authentication-api-6-7-1/206431 "2019-11-04T15:45:05Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Anish\_Raju](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anish_raju/32/57112_2.png) [@Anish\_Raju](https://discuss.elastic.co/u/Anish_Raju)
#### Post date: [November 4, 2019, 3:45pm UTC](https://discuss.elastic.co/t/auto-login-with-authentication-api-6-7-1/206431/1 "2019-11-04T15:45:06Z")

</div>

I have Kibana hosted in unix server. But we dont have access to the server. we have login details to the kibana application. So now i want to display the dashboard without manually logging in everytime. So i tried to connect with login api through proxy and i get 204 status code with sid as set-cookie header. But still the application is going to login page when i redirect it to dashboard.

Can you please help me with this. Thanks in advance.

---

<div class="post-metadata">

### Author: ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)
#### Post date: [November 14, 2019, 10:25pm UTC](https://discuss.elastic.co/t/auto-login-with-authentication-api-6-7-1/206431/2 "2019-11-14T22:25:51Z")

</div>

probably you can see if embedding the dashboard in an iframe would work for you? Here are some related posts to show you how to achieve that .

> [@Add iframe in Kibana dashboards](https://discuss.elastic.co/t/add-iframe-in-kibana-dashboards/171441/6):
>
> Dear All, Can anyone help on this

Thanks  
Rashmi

---

<div class="post-metadata">

### Author: ![Anish\_Raju](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anish_raju/32/57112_2.png) [@Anish\_Raju](https://discuss.elastic.co/u/Anish_Raju)
#### Post date: [November 15, 2019, 4:10am UTC](https://discuss.elastic.co/t/auto-login-with-authentication-api-6-7-1/206431/3 "2019-11-15T04:10:42Z")

</div>

Yes i tried that. And it goes to login page directly. Is there a way to login in background and goto the dashboard once after logging in.

I tried some topics here but am not able to directly hit the login from html due to cors issue. So i tried to have my own api and from there i tried hitting the login api. But still it didnt work. Can you help me with this scenario.

---

<div class="post-metadata">

### Author: ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)
#### Post date: [November 15, 2019, 5:16am UTC](https://discuss.elastic.co/t/auto-login-with-authentication-api-6-7-1/206431/4 "2019-11-15T05:16:12Z")

</div>

[Kibana - skip login page](https://discuss.elastic.co/t/kibana-skip-login-page/167323/2) may be might give you some ideas? Please try and let us know

Thanks  
Rashmi

---

<div class="post-metadata">

### Author: ![Anish\_Raju](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anish_raju/32/57112_2.png) [@Anish\_Raju](https://discuss.elastic.co/u/Anish_Raju)
#### Post date: [November 15, 2019, 6:10am UTC](https://discuss.elastic.co/t/auto-login-with-authentication-api-6-7-1/206431/5 "2019-11-15T06:10:51Z")

</div>

Hello, thanks for quick response.

The situation here is, i don't have access to the kibana.yml file or nginx config file so we are not able to set the reverse proxy or allow cors.

I have only user details, can i login in the background using the user details i have rather than manually enterring user credentials everytime i want to view the dashboard.

---

<div class="post-metadata">

### Author: ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)
#### Post date: [November 18, 2019, 11:50pm UTC](https://discuss.elastic.co/t/auto-login-with-authentication-api-6-7-1/206431/6 "2019-11-18T23:50:57Z")

</div>

@Larry - need ur inputs here

Thanks  
Rashmi

---

<div class="post-metadata">

### Author: ![Anish\_Raju](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anish_raju/32/57112_2.png) [@Anish\_Raju](https://discuss.elastic.co/u/Anish_Raju)
#### Post date: [November 26, 2019, 6:41am UTC](https://discuss.elastic.co/t/auto-login-with-authentication-api-6-7-1/206431/7 "2019-11-26T06:41:47Z")

</div>

Hi @rashmi, could you pls help me with this. I am using normal html and node js for proxy api call. Do you want me to share any code for that ?

---

<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 24, 2019, 6:41am UTC](https://discuss.elastic.co/t/auto-login-with-authentication-api-6-7-1/206431/8 "2019-12-24T06:41:48Z")

</div>

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