Skip to content

Commit 5c1cee4

Browse files
committed
cli/command: remove deprecated ConfigureAuth utility
It was deprecated in 6e4818e, which is part of v28.x and backported to v27.x. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit 22cc0e9) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 88274f4 commit 5c1cee4

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

cli/command/registry.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -97,23 +97,6 @@ func GetDefaultAuthConfig(cfg *configfile.ConfigFile, checkCredStore bool, serve
9797
return registrytypes.AuthConfig(authconfig), nil
9898
}
9999

100-
// ConfigureAuth handles prompting of user's username and password if needed.
101-
//
102-
// Deprecated: use [PromptUserForCredentials] instead.
103-
func ConfigureAuth(ctx context.Context, cli Cli, flUser, flPassword string, authConfig *registrytypes.AuthConfig, _ bool) error {
104-
defaultUsername := authConfig.Username
105-
serverAddress := authConfig.ServerAddress
106-
107-
newAuthConfig, err := PromptUserForCredentials(ctx, cli, flUser, flPassword, defaultUsername, serverAddress)
108-
if err != nil {
109-
return err
110-
}
111-
112-
authConfig.Username = newAuthConfig.Username
113-
authConfig.Password = newAuthConfig.Password
114-
return nil
115-
}
116-
117100
// PromptUserForCredentials handles the CLI prompt for the user to input
118101
// credentials.
119102
// If argUser is not empty, then the user is only prompted for their password.

0 commit comments

Comments
 (0)