I am stuck at a problem for a few day now. We are trying to connect Grafana to Azure, for 2FA. When I tried with local host, the authentication worked, but when we tried ti with reverse proxy, we get this error: AADSTS50011: The redirect URI 'http://****/login/azuread’ specified in the request does not match the redirect URIs configured for the application ‘92209b1b-8ef9-4a8d-bec4-3bea98b0089a’. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal.
For reverse proxy we are using Microsoft ISS. We are using Grafana v11.1, that is instaled localy (on the same server as ISS), and is running as a Microsoft service.
The ISS is configured the same as in this Git issue:
The configuration in Grafana looks like this:
[server]
Protocol (http, https, h2, socket)
protocol = http
Minimum TLS version allowed. By default, this value is empty. Accepted values are: TLS1.2, TLS1.3. If nothing is set TLS1.2 would be taken
min_tls_version = “”
The ip address to bind to, empty will bind to all interfaces
http_addr =
The http port to use
http_port = 3000
The public facing domain name used to access grafana from a browser
domain = ourdomain
Redirect to correct domain if host header does not match domain
When we try to sign in with Azure, we get the prompt for Username/Pssword, and then it reroutes us back to Grafana, were we get this error:
AADSTS50011: The redirect URI 'http://****/login/azuread’ specified in the request does not match the redirect URIs configured for the application ‘92209b1b-8ef9-4a8d-bec4-3bea98b0089a’. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal.
This redirect URI is part of the header payload, and we cant figure out how to change it to the https address.
We tried createing custom inbound/outbond rules in iss, but to no avail, we tried to directly set the root_url in the Grafana configuratio, to enforce the domain, tried to use the generic authentication configuration, instead of the Azure authentication… but nothing worked.