Commit dfa2f3d2 by Marcus Efraimsson Committed by GitHub

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
parent e0a2d4be
......@@ -322,7 +322,7 @@ func addOAuthPassThruAuth(c *m.ReqContext, req *http.Request) {
TokenType: authInfoQuery.Result.OAuthTokenType,
}).Token()
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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment