I tried to embed Kibana into a webpage but was unable to login as they kept bringing me back to the login page.
So I decided to take a different approach and allow user to log in anonymously.
I create an API-Key and link a newly created role to the api-key. However, when I try to login anonymously, I received this error
Hello @yanwencheng , I went with a different approach. Instead of giving an API key the privilege role (in my case the role is called anonymous-role), I gave the anonymous-role to a newly created user and used the following code instead;
Error: [security_exception: [security_exception] Reason: unable to authenticate user [anonymousUser1] for REST request [/_security/_authenticate]]: unable to authenticate user [anonymousUser1] for REST request [/_security/_authenticate]
at login_form_LoginForm.loginWithSelector (http://192.168.30.243:5601/44266/bundles/plugin/security/8.0.0/security.chunk.5.js:8:22037)
at async login_form_LoginForm.componentDidMount (http://192.168.30.243:5601/44266/bundles/plugin/security/8.0.0/security.chunk.5.js:8:23159)
that's what I did last time but I got the same error. So I add the roles to a newly created user and am able to log in anonymously using my iFrame code.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.