# Kibana after logging with user name and password in going back to login screen

**URL:** <https://discuss.elastic.co/t/kibana-after-logging-with-user-name-and-password-in-going-back-to-login-screen/266641>\
**Category:** Kibana\
**Created:** [March 9, 2021, 6:58am UTC](https://discuss.elastic.co/t/kibana-after-logging-with-user-name-and-password-in-going-back-to-login-screen/266641 "2021-03-09T06:58:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sathish.mtech01](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sathish.mtech01/32/85207_2.png) [@sathish.mtech01](https://discuss.elastic.co/u/sathish.mtech01)\
**Post date:** [March 9, 2021, 6:58am UTC](https://discuss.elastic.co/t/kibana-after-logging-with-user-name-and-password-in-going-back-to-login-screen/266641/1 "2021-03-09T06:58:55Z")

</div>

Kibana after logging with user name and password in going back to login screen itself

- After inspecting in console there are no errors
- Deployed in Azure Kubernetes environment

---

<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:** [March 10, 2021, 11:22pm UTC](https://discuss.elastic.co/t/kibana-after-logging-with-user-name-and-password-in-going-back-to-login-screen/266641/2 "2021-03-10T23:22:17Z")

</div>

> [@sathish.mtech01](#):
>
> Kibana after logging with user name and password in going back to login screen itself

anything suspicious in the kibana logs ? also check in the browser console logs? Can you confirm what browser , kibana version, and browser version you are using ?  
Try opening Kibana in an incognito window and see if it works ? Clear all the browser cookies as well before login.

Thanks  
Rashmi

---

<div class="post-metadata">

**Author:** ![sathish.mtech01](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sathish.mtech01/32/85207_2.png) [@sathish.mtech01](https://discuss.elastic.co/u/sathish.mtech01)\
**Post date:** [March 12, 2021, 7:22am UTC](https://discuss.elastic.co/t/kibana-after-logging-with-user-name-and-password-in-going-back-to-login-screen/266641/3 "2021-03-12T07:22:14Z")

</div>

Thanks Rashmi,

I used

Kibana 7.10.1  
Browser - Chrome latest, Edge latest  
Tired in incognito window also  
Cleared all browser cookies as well

If I am entering wrong password its says incorrect password  
But if i enter correct password it comes to the logging screen itself.

We have used CSP headers will that be an issue?

---

<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:** [March 12, 2021, 3:44pm UTC](https://discuss.elastic.co/t/kibana-after-logging-with-user-name-and-password-in-going-back-to-login-screen/266641/4 "2021-03-12T15:44:44Z")

</div>

The solution for this would be to set `sameSiteCookies: None` in `kibana.yml` and you'll need to use https, otherwise Chrome won't respect the setting. The only caveat is that this will work with Kibana 7.8.1 and above. I verified on 7.9 and works fine.  
Also can u check in Firefox?

---

<div class="post-metadata">

**Author:** ![sathish.mtech01](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sathish.mtech01/32/85207_2.png) [@sathish.mtech01](https://discuss.elastic.co/u/sathish.mtech01)\
**Post date:** [March 12, 2021, 4:55pm UTC](https://discuss.elastic.co/t/kibana-after-logging-with-user-name-and-password-in-going-back-to-login-screen/266641/5 "2021-03-12T16:55:46Z")

</div>

Hi Rashmi,

Thanks,

We are using Kibana in kubernetes , below is the yaml file could you pls check and help here..

kibana.yaml

apiVersion: [kibana.k8s.elastic.co/v1](http://kibana.k8s.elastic.co/v1)  
kind: Kibana  
metadata:  
name: test-kibana  
namespace: staging  
spec:  
http:  
tls:  
selfSignedCertificate:  
disabled: true  
version: 7.10.1  
count: 1  
config:  
#pack.security.encryptionKey:"aaaalasdkaskdjalskdjfaksjdajdhaskjdhajdskjhsadkjh"  
xpack.security.sameSiteCookies: None

---

<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:** [April 9, 2021, 4:56pm UTC](https://discuss.elastic.co/t/kibana-after-logging-with-user-name-and-password-in-going-back-to-login-screen/266641/6 "2021-04-09T16:56:13Z")

</div>

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