问题
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