SSO login for Angular SPA with Grafana

  • What Grafana version and what operating system are you using?
    I am using v7.2.1 (72a6c64532) of grafana in a EC2 machine.

  • What are you trying to achieve?
    I have an Angular SPA wherein I am able to display panels from Grafana. Currently, the Angular SPA and Grafana has different login. I have a page in my SPA where I have to allow the user to log in to Grafana. What I want to do is that if the user is logged into the Angular SPA, the user should also be logged into Grafana. Is there any way to do that?

  • How are you trying to achieve it?
    This is the one approach I am trying i.e to use the Grafana login API(attached screenshot,


    ) to be integrated into my Angular SPA. So based on the response I will login the user in Angular SPA as well as Grafana.

  • What happened?
    I have tried to integrate this API but got a 404 error.
    Is this the correct approach, or is there a better way?

I have tried integrating AWS Cognito, Okta using the sign-in widget, and also configuring okta in the Grafana server.
Is there a way to achieve SSO in my Angular SPA and Grafana?

Hi, if anyone can help with this. It will be much appreciated. We have to find a solution for this urgently. Thank you.