Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove login and logout deprecation notice #2589

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions cmd/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ package cmd

import (
"errors"
"fmt"
"strings"

"github.com/Azure/azure-storage-azcopy/v10/common"
Expand All @@ -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"},
Expand All @@ -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)
}
Expand Down
1 change: 0 additions & 1 deletion cmd/logout.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading