mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Exclude full OAuth token details from printing out on stdout (#55426)
* remove token details from printing out on stdout * Update login_oauth.go * address comment
This commit is contained in:
parent
9db61f54ff
commit
33eb4a2807
@ -194,7 +194,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", "expiry", fmt.Sprintf("%v", token.Expiry))
|
||||
|
||||
// set up oauth2 client
|
||||
client := connect.Client(oauthCtx, token)
|
||||
|
Loading…
Reference in New Issue
Block a user