Remove unused struct member (#1224)

This commit is contained in:
Hidetake Iwata
2025-01-08 12:50:15 +09:00
committed by GitHub
parent afb25f511c
commit c66570c030
3 changed files with 2 additions and 4 deletions

View File

@@ -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)

View File

@@ -34,7 +34,6 @@ type Input struct {
GrantOptionSet GrantOptionSet
CachedTokenSet *oidc.TokenSet // optional
TLSClientConfig tlsclientconfig.Config
ForceRefresh bool
UseAccessToken bool
}

View File

@@ -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 {