mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 07:32:12 +08:00
Chore: Log actual error when oauth pass thru fails (#20419)
Logs the actual error when failing to retreive access token when OAuth pass true is enabled for a datasource. Ref: #20407
This commit is contained in:

committed by
GitHub

parent
e0a2d4beac
commit
dfa2f3d2fb
@ -322,7 +322,7 @@ func addOAuthPassThruAuth(c *m.ReqContext, req *http.Request) {
|
|||||||
TokenType: authInfoQuery.Result.OAuthTokenType,
|
TokenType: authInfoQuery.Result.OAuthTokenType,
|
||||||
}).Token()
|
}).Token()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Error("Failed to retrieve access token from oauth provider", "provider", authInfoQuery.Result.AuthModule)
|
logger.Error("Failed to retrieve access token from oauth provider", "provider", authInfoQuery.Result.AuthModule, "error", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user