diff --git a/pkg/cmd/get_token.go b/pkg/cmd/get_token.go index d7de0cf..c6305c3 100644 --- a/pkg/cmd/get_token.go +++ b/pkg/cmd/get_token.go @@ -96,11 +96,11 @@ func (cmd *GetToken) New() *cobra.Command { UseAccessToken: o.UseAccessToken, ExtraScopes: o.ExtraScopes, }, + ForceRefresh: o.ForceRefresh, TokenCacheDir: o.TokenCacheDir, TokenCacheStorage: tokenStorage, GrantOptionSet: grantOptionSet, TLSClientConfig: o.tlsOptions.tlsClientConfig(), - ForceRefresh: o.ForceRefresh, } if err := cmd.GetToken.Do(c.Context(), in); err != nil { return fmt.Errorf("get-token: %w", err) diff --git a/pkg/usecases/authentication/authentication.go b/pkg/usecases/authentication/authentication.go index cdac7fd..1f3d66b 100644 --- a/pkg/usecases/authentication/authentication.go +++ b/pkg/usecases/authentication/authentication.go @@ -34,7 +34,6 @@ type Input struct { GrantOptionSet GrantOptionSet CachedTokenSet *oidc.TokenSet // optional TLSClientConfig tlsclientconfig.Config - ForceRefresh bool UseAccessToken bool } diff --git a/pkg/usecases/credentialplugin/get_token.go b/pkg/usecases/credentialplugin/get_token.go index 2367af6..65d6fb8 100644 --- a/pkg/usecases/credentialplugin/get_token.go +++ b/pkg/usecases/credentialplugin/get_token.go @@ -32,11 +32,11 @@ type Interface interface { // Input represents an input DTO of the GetToken use-case. type Input struct { Provider oidc.Provider + ForceRefresh bool TokenCacheDir string TokenCacheStorage tokencache.Storage GrantOptionSet authentication.GrantOptionSet TLSClientConfig tlsclientconfig.Config - ForceRefresh bool } type GetToken struct { @@ -115,7 +115,6 @@ func (u *GetToken) Do(ctx context.Context, in Input) error { GrantOptionSet: in.GrantOptionSet, CachedTokenSet: cachedTokenSet, TLSClientConfig: in.TLSClientConfig, - ForceRefresh: in.ForceRefresh, } authenticationOutput, err := u.Authentication.Do(ctx, authenticationInput) if err != nil {