I have a dashboard that I want to share to users who are logged in to my application.
I followed the documentation and added the following to my elastic.yml
xpack.security.authc.providers:
basic.basic1:
order: 0
anonymous.anonymous1:
order: 1
credentials:
username: “username”
password: “password”
this works great and allows the dashboard to load in an iframe. however I realised it also allows anyone with the dashboard URL to access the dashboard, my dashboards can sometimes contain sensitive information so this is not something I want.
If I remove the anonymous.anonymous1 block then a password is required to log in , which is ok if the dashboard URL is just being shared, but really what we want is for our application,(php/html) which we’ve embedded it into, to automatically authenticate without needing to login. so is there some way to pass the username / password by code or something?
Is this something that is possible and if so how would I achieve it?