Skip to content

Commit

Permalink
Don't log client secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
ishank011 committed Sep 7, 2020
1 parent cb6544d commit dc779a5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/http/interceptors/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@ func New(m map[string]interface{}, unprotected []string) (global.Middleware, err
log.Debug().Err(err).Msg("error retrieving credentials")
}
if creds != nil {
log.Debug().Msgf("credentials obtained from credential strategy: %+v", creds)

log.Debug().Msgf("credentials obtained from credential strategy: type: %s, client_id: %s", creds.Type, creds.ClientID)
break
}
}
Expand All @@ -191,7 +190,7 @@ func New(m map[string]interface{}, unprotected []string) (global.Middleware, err
ClientSecret: creds.ClientSecret,
}

log.Debug().Msgf("AuthenticateRequest: %+v against %s", req, conf.GatewaySvc)
log.Debug().Msgf("AuthenticateRequest: type: %s, client_id: %s against %s", req.Type, req.ClientId, conf.GatewaySvc)

client, err := pool.GetGatewayServiceClient(conf.GatewaySvc)
if err != nil {
Expand Down

0 comments on commit dc779a5

Please sign in to comment.