Oauth: Reduce error scope on upsert (#53242)

This commit is contained in:
Jo authored and GitHub committed 2022-08-08 10:58:10 +02:00
1 parent a40c1e227c
commit beb3cb9abe
2 files changed
+28 -28

No files matched your search

+1 -1
View File
@@ -193,7 +193,7 @@ func (hs *HTTPServer) OAuthLogin(ctx *models.ReqContext) {
// token.TokenType was defaulting to "bearer", which is out of spec, so we explicitly set to "Bearer"
token.TokenType = "Bearer"
oauthLogger.Debug("OAuthLogin: got token", "token", fmt.Sprintf("%v", token))
oauthLogger.Debug("OAuthLogin: got token", "token", fmt.Sprintf("%+v", token))
// set up oauth2 client
client := connect.Client(oauthCtx, token)