Anonymous login

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, 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?

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?

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

Thanks
Rashmi

When using the echo command, you need to include the -n flag to avoid appending a newline character (reference).

That's right! Thanks a lot!

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