AzureAD in local hosted grafana

Hi there!
I have an instance of grafana running on a rasberry pi. (Then I have nginx as a proxy and I embed this in my azure hosted webapplication in an iframe to present grafana).
So I wanted to setup azuread for grafana to see if I could get SSO to work to have smooth setup without having to authenticate again to see the grafana dashboard.

For the most part I followed this guide here

I created a grafana app in Azure, update the needed configurations. And it worked brilliantly! Logged into my webapp, was able to see the grafana login screen load(after disabling the deny cross site in header) and log in and see all my data <3 But only the first time!

Problem is, the authorization code is not being renewed on each request, so I am unable to log in again using azuread.
I am getting invalid grant, authorization code already redeemed

Help please :slight_smile:

It is not clear what is first time. First time login, first time request,…

The first time logging into grafana using the identity provider.
All following requests for login to /azuread uses the same code and produces the mentioned error message.

I don’t understand. Could you list browser requests, response codes, errors in chronological order, pls