How to Auto Login Kibana Dashboard which embedded in Iframe

I am using angular 8 for front end application where we have dashboard page where a iframe of kibana dashboard will be present. If user logins to application, he should automatically get logged in to kibana also. How can I do it? Is there a way to attach a token to url we are passing to iframe or any other way? The users are created dynamically and will have limited access to dashboard. Can some one guide me as I am pretty new to ELK stack and the info I read online has also got me pretty confused.

You can pass in an authorization header as described in this thread: Auto-authenticating to iframe-embedded Kibana dashboard

It's a little old but should still be largely accurate.

We can achieve this with the user added in elasticsearch. But I have user login data on another db. How can we dynamically add users and set there roles in elastic?

You can use the user APIs to create/etc users

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