Issue: Accessing Azure Access Token
We use SSO-based authentication to log in to Grafana. We need help retrieving the Azure access token so our apps in Grafana can interact with an external REST API that requires this access token in its request payload.
Question
Is there a straightforward way to retrieve the Azure access token and include it in the request payloads sent to our external API when using OAuth in Grafana?
Methods Tried
-
Using MSAL.js for obtaining access token
We can use MSAL.js to obtain the token and store it in session storage. However,this method does not offer a flow through Grafana built in SSO based login flow. -
Configuring grafana.ini for SSO-based Authentication
After successfully logging in using Grafana built in SSO login flow, Azure does not return or store the access token in the browser, making it unclear how to retrieve and forward it to the external REST API.
Thank you!