Hi All,
I am using Grafana v8.1.1 not enterprise version. I followed Azure AD OAuth2 authentication link and set up as mentioned - Configure Azure AD OAuth2 authentication | Grafana documentation
I am able to login into Grafana with Microsoft credentials but after that getting attached error -
- login.OAuthLogin(missing saved state) after I logged into
In Grafana error logs I am getting -
2021-09-02T18:06:24-0400 lvl=eror msg=login.OAuthLogin(NewTransportWithCode) logger=context userId=0 orgId=0 uname= error="oauth2: cannot fetch token: 401 Unauthorized\nResponse: {"error":"invalid_client","error_description":"AADSTS7000215: Invalid client secret is provided.\r\nTrace ID: ff57dc8d-fd35-4c47-8545-34c7a3880300\r\nCorrelation ID: 4d719eb4-2b60-4212-9e13-497be57b6d8b\r\nTimestamp: 2021-09-02 22:06:24Z","error_codes":[7000215],"timestamp":"2021-09-02 22:06:24Z","trace_id":"ff57dc8d-fd35-4c47-8545-34c7a3880300","correlation_id":"4d719eb4-2b60-4212-9e13-497be57b6d8b","error_uri":"https://login.microsoftonline.com/error?code=7000215\“}”
t=2021-09-02T18:06:24-0400 lvl=eror msg=“Request Completed” logger=context userId=0 orgId=0 uname= method=GET path=/login/azuread status=500 remote_addr=@ time_ms=513 size=1744 referer=https://grafana-test.pr.business/
t=2021-09-02T18:06:24-0400 lvl=eror msg=login.OAuthLogin(NewTransportWithCode) logger=context userId=0 orgId=0 uname= error="oauth2: cannot fetch token: 401 Unauthorized\nResponse: {"error":"invalid_client","error_description":"AADSTS7000215: Invalid client secret is provided.\r\nTrace ID: 57e4500b-91d6-4cf7-842c-7c46e52a7100\r\nCorrelation ID: bbd43f12-eb13-470f-91a0-ddb0c7ea336e\r\nTimestamp: 2021-09-02 22:06:24Z","error_codes":[7000215],"timestamp":"2021-09-02 22:06:24Z","trace_id":"57e4500b-91d6-4cf7-842c-7c46e52a7100","correlation_id":"bbd43f12-eb13-470f-91a0-ddb0c7ea336e","error_uri":"https://login.microsoftonline.com/error?code=7000215\“}”
I verified all the client ID, secret, token, and authorize urls, all are correctly set in Grafana.ini I verified it with Azure application multiple times. Does this works only with Enterprise version of Grafana? Please suggest what configurations I am missing or setting incorrectly.
Regards,
Sudeep