From 3edfe43e687883a6715378cdc69a0c371672c70e Mon Sep 17 00:00:00 2001 From: Gauri Prasad Date: Thu, 22 Feb 2024 10:37:15 -0800 Subject: [PATCH] Remove login and logout deprecation notice --- cmd/login.go | 6 ------ cmd/logout.go | 1 - 2 files changed, 7 deletions(-) diff --git a/cmd/login.go b/cmd/login.go index 3fdcdf88c..f5088f4da 100644 --- a/cmd/login.go +++ b/cmd/login.go @@ -22,7 +22,6 @@ package cmd import ( "errors" - "fmt" "strings" "github.com/Azure/azure-storage-azcopy/v10/common" @@ -31,10 +30,6 @@ import ( var loginCmdArg = loginCmdArgs{tenantID: common.DefaultTenantID} -var loginNotice = "We recommend all customers migrate off of using the 'azcopy %s' command. " + - "Use auto-login instead. Visit %s to know more." -var autoLoginURL = "https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-authorize-azure-active-directory#authorize-without-a-secret-store " - var lgCmd = &cobra.Command{ Use: "login", SuggestFor: []string{"login"}, @@ -49,7 +44,6 @@ var lgCmd = &cobra.Command{ loginCmdArg.clientSecret = glcm.GetEnvironmentVariable(common.EEnvironmentVariable.ClientSecret()) loginCmdArg.persistToken = true - glcm.Info(fmt.Sprintf(loginNotice, "login", autoLoginURL)) if loginCmdArg.certPass != "" || loginCmdArg.clientSecret != "" { glcm.Info(environmentVariableNotice) } diff --git a/cmd/logout.go b/cmd/logout.go index 1df552607..172cd812a 100644 --- a/cmd/logout.go +++ b/cmd/logout.go @@ -53,7 +53,6 @@ func init() { type logoutCmdArgs struct{} func (lca logoutCmdArgs) process() error { - glcm.Info(fmt.Sprintf(loginNotice, "logout", autoLoginURL)) uotm := GetUserOAuthTokenManagerInstance() if err := uotm.RemoveCachedToken(); err != nil { return err