--auth-type basic ask for personal access token

Open
#365 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript

Research direction

Reproduce the tfx.cmd extension publish command with --auth-type basic and compare it with --auth-type pat, starting by tracing how each mode handles authentication and formats a 401 response. Done means basic-auth failures no longer mention personal access tokens, while valid basic credentials still work as expected.

Written by the indexing model from the issue text.

Description

Area: tfx-cli bug

When I execute

tfx.cmd extension publish --json --no-color --service-url https://my-server.de/ --auth-type basic --username Myuser --password *** --vsix Pub.MyPackage-1.0.2.gen.vsix --debug-log-stream stderr

the tfx-cli returns:

error: Received response 401 (Not Authorized). Check that your personal access token is correct and hasn't expired.

I can confirm that my passed credentials are valid. Anyway I would expect that the error tells me something about a basic auth issue, not about a personal access token what I would expect when I use --auth-type pat.

Do --auth-type basic works correct?

Dominant language
TypeScript
Stars
386
Forks
142
Avg merge
1d 22h
Merged PRs (30d)
7

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/tfs-cli

All issues in microsoft/tfs-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.