Skip to content

Commit c58369d

Browse files
committed
Revert change to use verifyToken() and implicitly return access token per RFC6749
1 parent c6d31d7 commit c58369d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

pkg/oidc/client/client.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,10 @@ func (c *client) GetTokenByClientCredentials(ctx context.Context, in GetTokenByC
180180
if err != nil {
181181
return nil, fmt.Errorf("could not acquire token: %w", err)
182182
}
183-
if c.useAccessToken == true {
184-
return &oidc.TokenSet{
185-
IDToken: token.AccessToken,
186-
RefreshToken: token.RefreshToken}, nil
187-
}
188-
return c.verifyToken(ctx, token, "")
183+
return &oidc.TokenSet{
184+
IDToken: token.AccessToken,
185+
RefreshToken: token.RefreshToken,
186+
}, nil
189187
}
190188

191189
// GetDeviceAuthorization initializes the device authorization code challenge

0 commit comments

Comments
 (0)