# Kibana auto login (with security enabled)

**URL:** <https://discuss.elastic.co/t/kibana-auto-login-with-security-enabled/292934>\
**Category:** Kibana\
**Tags:** elastic-stack-security, docker\
**Created:** [December 26, 2021, 12:37pm UTC](https://discuss.elastic.co/t/kibana-auto-login-with-security-enabled/292934 "2021-12-26T12:37:42Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![lukeelmers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukeelmers/32/35230_2.png) [@lukeelmers](https://discuss.elastic.co/u/lukeelmers)\
**Post date:** [December 29, 2021, 7:10pm UTC](https://discuss.elastic.co/t/kibana-auto-login-with-security-enabled/292934/2 "2021-12-29T19:10:21Z")

</div>

Hey there,

It sounds like you might want to look into [anonymous access](https://www.elastic.co/guide/en/kibana/current/kibana-authentication.html#anonymous-authentication), which would allow you to specify an existing user account to automatically log users in with. But this is assuming that:

- your Kibana deployment is already protected behind your own authentication system
- you want your users to access Kibana via a shared/service account
- you aren't interested in using SSO (SAML/Kerberos/OIDC)

> Is there a way to do it via an API while still allowing me to access the Kibana UI with credentials if I access the Kibana directly (i.e. for cases when I want to login with a different user, for example - a more privileged one)?

For this case, you could [configure the auth providers](https://www.elastic.co/guide/en/kibana/current/kibana-authentication.html#multiple-authentication-providers) to still allow for basic auth, in addition to guest/anonymous access, so that you are able to [choose an option at login](https://www.elastic.co/guide/en/kibana/current/kibana-authentication.html#_anonymous_access_and_other_types_of_authentication).

---

_[View the full topic](https://discuss.elastic.co/t/kibana-auto-login-with-security-enabled/292934)._
