# Anonymous login

**URL:** <https://discuss.elastic.co/t/anonymous-login/253484>\
**Category:** Kibana\
**Created:** [October 27, 2020, 7:07pm UTC](https://discuss.elastic.co/t/anonymous-login/253484 "2020-10-27T19:07:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raul\_Uria](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@Raul\_Uria](https://discuss.elastic.co/u/Raul_Uria)\
**Post date:** [October 27, 2020, 7:07pm UTC](https://discuss.elastic.co/t/anonymous-login/253484/1 "2020-10-27T19:07:59Z")

</div>

Hi,  
trying to login into kibana 7.4 as anonymous user (without user login). I have a user with access to a particular dashboard, I can login and display the dashboard fine.

I've configured apache with

> RequestHeader set Authorization "Basic base64encodedpassword"

as indicated in [Auto-authenticating to iframe-embedded Kibana dashboard - #15 by Francisca\_Lima](https://discuss.elastic.co/t/auto-authenticating-to-iframe-embedded-kibana-dashboard/46091/15), but no luck, getting "unable to authenticate user [USERNAME] for REST request [//\_security/\_authenticate]".

I've double checked that base64encodedpassword is "user:password" string encoded in base64, same as user working fine at login prompt.

Any ideas?

---

<div class="post-metadata">

**Author:** ![Raul\_Uria](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@Raul\_Uria](https://discuss.elastic.co/u/Raul_Uria)\
**Post date:** [October 29, 2020, 7:31am UTC](https://discuss.elastic.co/t/anonymous-login/253484/2 "2020-10-29T07:31:35Z")

</div>

Wow! Now working, but I can't understand it completely...

When encoding "user:password" on my mac, get this: dXNlcjpwYXNzd29yZAo=  
using: `echo "user:password" | base64`

It seems to be wrong, encoding with online base64 generator, get this: dXNlcjpwYXNzd29yZA==

There are some different trailing chars, that do the trick !

Why?

---

<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:** [October 29, 2020, 3:40pm UTC](https://discuss.elastic.co/t/anonymous-login/253484/3 "2020-10-29T15:40:09Z")

</div>

cc @Larry_Gregory /@jportner  
can we have more insights here please?

Thanks  
Rashmi

---

<div class="post-metadata">

**Author:** ![jportner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jportner/32/75692_2.png) [@jportner](https://discuss.elastic.co/u/jportner)\
**Post date:** [October 29, 2020, 3:56pm UTC](https://discuss.elastic.co/t/anonymous-login/253484/4 "2020-10-29T15:56:56Z")

</div>

> [@Raul\_Uria](#):
>
> When encoding "user:password" on my mac, get this: dXNlcjpwYXNzd29yZAo=  
> using: `echo "user:password" | base64`
> 
> It seems to be wrong, encoding with online base64 generator, get this: dXNlcjpwYXNzd29yZA==
> 
> There are some different trailing chars, that do the trick !
> 
> Why?

When using the `echo` command, you need to include the `-n` flag to avoid appending a newline character ([reference](https://linuxcommand.org/lc3_man_pages/echoh.html)).

---

<div class="post-metadata">

**Author:** ![Raul\_Uria](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@Raul\_Uria](https://discuss.elastic.co/u/Raul_Uria)\
**Post date:** [October 29, 2020, 7:25pm UTC](https://discuss.elastic.co/t/anonymous-login/253484/5 "2020-10-29T19:25:10Z")

</div>

That's right! Thanks a lot!

---

<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:** [November 26, 2020, 7:25pm UTC](https://discuss.elastic.co/t/anonymous-login/253484/6 "2020-11-26T19:25:18Z")

</div>

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