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

Add clarity that PAT has to be passed on StdIn #1162

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Next Next commit
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
simonsabin authored Jul 25, 2021
commit 52bb3420d7475a2ec1b3486957c9324167d875b0
4 changes: 3 additions & 1 deletion azure-devops/azext_devops/dev/team/credentials.py
Original file line number Diff line number Diff line change
@@ -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()