Skip to content

Commit

Permalink
Update connector/oidc/oidc.go
Browse files Browse the repository at this point in the history
Co-authored-by: Maksim Nabokikh <[email protected]>
Signed-off-by: Sean Liao <[email protected]>
  • Loading branch information
seankhliao and nabokihms authored Jul 6, 2023
1 parent 0213a75 commit daf59cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connector/oidc/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ func (c *oidcConnector) createIdentity(ctx context.Context, identity connector.I

// We immediately want to run getUserInfo if configured before we validate the claims.
// For token exchanges with access tokens, this is how we verify the token.
if c.getUserInfo || checkAccessToken {
if c.getUserInfo {
userInfo, err := c.provider.UserInfo(ctx, oauth2.StaticTokenSource(token))
if err != nil {
return identity, fmt.Errorf("oidc: error loading userinfo: %v", err)
Expand Down

0 comments on commit daf59cd

Please sign in to comment.