Skip to content

Commit

Permalink
Move debug log on OIDC calls to connector
Browse files Browse the repository at this point in the history
  • Loading branch information
cehoffman authored and michaelliau committed Oct 4, 2023
1 parent 9cb25c4 commit d41ffef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions connector/oidc/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ func (c *oidcConnector) HandleCallback(s connector.Scopes, r *http.Request) (ide

ctx := context.WithValue(r.Context(), oauth2.HTTPClient, c.httpClient)

defer func() { c.logger.Infof("exchanging code for %s", identity.Email) }()
token, err := c.oauth2Config.Exchange(ctx, q.Get("code"))
if err != nil {
return identity, fmt.Errorf("oidc: failed to get token: %v", err)
Expand Down

0 comments on commit d41ffef

Please sign in to comment.