Oauth: Reduce error scope on upsert (#53242)

This commit is contained in:
Jo
2022-08-08 10:58:10 +02:00
committed by GitHub
parent a40c1e227c
commit beb3cb9abe
2 changed files with 28 additions and 28 deletions
+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)