Auto login to grafana from Web application using credentials or token

纵然是瞬间 提交于 2019-12-11 01:55:10

问题


I have web application and from that web application I want to open grafana dashboard into an iframe. But I want to auto login to grafana and show the dashboard. So i will achieve it using credentials or authorization header if possible. Is there any other way to do this.


回答1:


I'm working on something similar at the moment.

Implementing a clean solution is being discussed in the following Github issue: https://github.com/grafana/grafana/issues/3752, which does suggest some workarounds.




回答2:


I managed to do the autologin using nginx and grafana auth.proxy.

I'd generate a link in this format: http://grafana/?user=nayar&md5=2tutcea9nfdsfdsfdsw&expires=1505386800

I've given full detail on this link: https://github.com/grafana/grafana/issues/3752#issuecomment-329395036



来源:https://stackoverflow.com/questions/45230407/auto-login-to-grafana-from-web-application-using-credentials-or-token

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!