Skip to content

Commit dc1405b

Browse files
committed
Rename function
1 parent 60723c4 commit dc1405b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

common/commands/config.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ func (cc *ConfigCommand) getConfigurationNonInteractively() error {
199199
}
200200
}
201201

202-
if cc.UsesOidc() {
202+
if cc.OidcAuthMethodUsed() {
203203
if err := exchangeOidcTokenAndSetAccessToken(cc); err != nil {
204204
return err
205205
}
@@ -508,8 +508,8 @@ func (cc *ConfigCommand) SetOidcExchangeTokenId(id string) {
508508
cc.oidcSetupParams.TokenId = id
509509
}
510510

511-
// Provider name must be set in order to use OIDC integration
512-
func (cc *ConfigCommand) UsesOidc() bool {
511+
// If OIDC params were provided it indicates that we should use OIDC authentication method.
512+
func (cc *ConfigCommand) OidcAuthMethodUsed() bool {
513513
return cc.oidcSetupParams != nil && cc.oidcSetupParams.ProviderName != ""
514514
}
515515

0 commit comments

Comments
 (0)