OAuth: Restore debug log behavior (#51244)

This commit is contained in:
Jguer
2022-06-22 15:27:46 +02:00
committed by GitHub
parent ef23a76310
commit d2ab3556fa
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -192,7 +192,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", token)
oauthLogger.Debug("OAuthLogin: got token", "token", fmt.Sprintf("%v", token))
// set up oauth2 client
client := connect.Client(oauthCtx, token)
@@ -213,7 +213,7 @@ func (hs *HTTPServer) OAuthLogin(ctx *models.ReqContext) {
return
}
oauthLogger.Debug("OAuthLogin got user info", "userInfo", userInfo)
oauthLogger.Debug("OAuthLogin got user info", "userInfo", fmt.Sprintf("%v", userInfo))
// validate that we got at least an email address
if userInfo.Email == "" {