Skip to content

Commit 22cc0e9

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 <[email protected]>
1 parent de54347 commit 22cc0e9

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

‎cli/command/registry.go‎

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

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

0 commit comments

Comments
 (0)