File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments