-
What Grafana version and what operating system are you using? v10.2.3
-
What are you trying to achieve? We are trying to integrate Grafana with Azure AD Oath2 authentication
-
How are you trying to achieve it? Integrating with the help of the attached document:
-
What happened? Getting below error: AADSTS50011: The redirect URI ‘http://localhost:3000/login/azuread’ specified in the request does not match the redirect URIs configured for the application ‘identifier’. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal. Navigate to Error AADSTS50011 the redirect URI does not match the redirect URIs configured for the application - Active Directory | Microsoft Learn to learn more about how to fix this.
-
What did you expect to happen? We want it to get authenticated with SSO.
-
Can you copy/paste the configuration(s) that you are having problems with?
-
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
-
Did you follow any online instructions? If so, what is the URL?
Followed this documentation: Configure Azure AD OAuth2 authentication | Grafana documentation
Configure client in Azure and allow that http://localhost:3000/login/azuread
redirect url there.
Follow documentation, which you linked, please. If you want to use http://localhost:3000/login/azuread
, then allow it in the Azure:
We want to login with https://grafana-staging.domain/login/azuread but we are still getting this error -
AADSTS50011: The redirect URI ‘http://localhost:3000/login/azuread’ specified in the request does not match the redirect URIs configured for the application ‘2c213ae5-9e81-49bb-839c-3f7d3aee2395’.
We are not sure what change should we need to make in Grafana config so that it redirects us to the Azure redirect uri mentioned above
Doc:
Verify that the Grafana root_url is set in your Azure Application Redirect URLs.
You didn’t configure root_url
in your Grafana properly.