From 52bb3420d7475a2ec1b3486957c9324167d875b0 Mon Sep 17 00:00:00 2001 From: Simon Sabin <1209963+simonsabin@users.noreply.github.com> Date: Sun, 25 Jul 2021 13:17:43 +0100 Subject: [PATCH 1/2] Add clarity that PAT has to be passed on StdIn Add clarity that PAT can only be passed on StdIn when console(tty) isn't present --- azure-devops/azext_devops/dev/team/credentials.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/azure-devops/azext_devops/dev/team/credentials.py b/azure-devops/azext_devops/dev/team/credentials.py index 70d9d012..173dfb4f 100644 --- a/azure-devops/azext_devops/dev/team/credentials.py +++ b/azure-devops/azext_devops/dev/team/credentials.py @@ -19,7 +19,9 @@ def credential_set(organization=None): - """Set the credential (PAT) to use for a particular organization. + """If console is present will prompt for the credential (PAT) to use for a particular organization. + If no console is present creential must be passed on StdIn. + Refer https://aka.ms/azure-devops-cli-auth for more information on providing PAT as input. """ token = _get_pat_token() From 194e557992707bfc989aa19efc58c134bbfbb44f Mon Sep 17 00:00:00 2001 From: Simon Sabin <1209963+simonsabin@users.noreply.github.com> Date: Fri, 8 Jul 2022 11:05:48 +0100 Subject: [PATCH 2/2] fixed spelling --- azure-devops/azext_devops/dev/team/credentials.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-devops/azext_devops/dev/team/credentials.py b/azure-devops/azext_devops/dev/team/credentials.py index 173dfb4f..834c2d8d 100644 --- a/azure-devops/azext_devops/dev/team/credentials.py +++ b/azure-devops/azext_devops/dev/team/credentials.py @@ -19,8 +19,8 @@ def credential_set(organization=None): - """If console is present will prompt for the credential (PAT) to use for a particular organization. - If no console is present creential must be passed on StdIn. + """If console is present this will prompt for the credential (PAT) to use for a particular organization. + If no console is present the credential must be passed on StdIn. Refer https://aka.ms/azure-devops-cli-auth for more information on providing PAT as input. """