# Unable to login via anonymous

**URL:** <https://discuss.elastic.co/t/unable-to-login-via-anonymous/282587>\
**Category:** Kibana\
**Tags:** elastic-stack-security\
**Created:** [August 26, 2021, 2:40pm UTC](https://discuss.elastic.co/t/unable-to-login-via-anonymous/282587 "2021-08-26T14:40:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![selin](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@selin](https://discuss.elastic.co/u/selin)\
**Post date:** [August 26, 2021, 2:40pm UTC](https://discuss.elastic.co/t/unable-to-login-via-anonymous/282587/1 "2021-08-26T14:40:58Z")

</div>

I unable to login via anonymous. I am expecting to able view dashboard without login but admin should able to login. How can it be done?

```auto
xpack.security.authc.providers:
  anonymous.anonymous1:
    order: 0
    credentials:
      username: "myusernamee"
      password: "mypassword"

```

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/c/cc80e12c3a88412c1e32a9053d3d632624454c3b.png)

---

<div class="post-metadata">

**Author:** ![alisongoryachev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alisongoryachev/32/111352_2.png) [@alisongoryachev](https://discuss.elastic.co/u/alisongoryachev)\
**Post date:** [August 26, 2021, 5:52pm UTC](https://discuss.elastic.co/t/unable-to-login-via-anonymous/282587/2 "2021-08-26T17:52:18Z")

</div>

Hi @selin! I'd recommend [reading through the PR](https://github.com/elastic/kibana/pull/79985) in which this feature was implemented, as it provides some setup instructions. There is also [documentation available on anonymous access](https://www.elastic.co/guide/en/kibana/current/kibana-authentication.html#anonymous-authentication) in Kibana.

---

<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:** [September 23, 2021, 5:53pm UTC](https://discuss.elastic.co/t/unable-to-login-via-anonymous/282587/3 "2021-09-23T17:53:17Z")

</div>

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