Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Unauthorized access to Team Server when signing in #111

Closed
ghost opened this issue Feb 16, 2017 · 8 comments
Closed

Unauthorized access to Team Server when signing in #111

ghost opened this issue Feb 16, 2017 · 8 comments

Comments

@ghost
Copy link

ghost commented Feb 16, 2017

Hi,

I hope I'm not duplicating any open issue (I read the open ones but they seem slightly different).

I'm using Visual Studio Code 1.9.0 and your latest extension version. We have a git repository in our Microsoft Visual Studio Team Foundation Server 2015 (version 14.102.25423.0).

http://tfs.companyname.net:8080/tfs/projectname/teamname/_git/repositoryName

When I try to signin entering my username (domain/username) and password, I get the 401 error message (when hovering the team icon) See the log below:

2017-02-16T18:54:05.005Z - info:   [40448] *** FOLDER: c:\git\<repositoryName> ***
2017-02-16T18:54:05.005Z - debug:  [40448] Looking for an External Context at c:\git\<repositoryName>
2017-02-16T18:54:05.005Z - debug:  [40448] No External Context at c:\git\<repositoryName>
2017-02-16T18:54:05.019Z - debug:  [40448] Parsing values from repositoryInfo as string url
2017-02-16T18:54:05.020Z - debug:  [40448] No account-specific token or global token found.
2017-02-16T18:54:05.126Z - debug:  [40448] Started ApplicationInsights telemetry
2017-02-16T18:54:05.126Z - info:   [40448] Getting repository information with repositoryInfoClient
2017-02-16T18:54:05.126Z - debug:  [40448] RemoteUrl = http://tfs.companyname.net:8080/tfs/projectname/teamname/_git/repositoryName
2017-02-16T18:54:05.127Z - debug:  [40448] Getting repository information for a Git repository at http://tfs.companyname.net:8080/tfs/projectname/teamname/_git/repositoryName
2017-02-16T18:54:05.285Z - error:  [40448] Failed call with repositoryClient:  Unauthorized. Check your authentication credentials and try again. Error: Failed Request: Unauthorized(401) -http://tfs.companyname.net:8080/tfs/projectname/teamname/_git/repositoryName/vsts/info
2017-02-16T18:54:05.286Z - debug:  [40448] Failed Request: Unauthorized(401) - http://tfs.companyname.net:8080/tfs/projectname/teamname/_git/repositoryName/vsts/info

I don't have any problem connecting Visual Studio Code with that url, neither accessing it via web.

Any idea what's going on? Any help will be much appreciated.

Thanks

@jpricket
Copy link
Member

@citi-raulfernandez - If everything else works, my guess is that somehow the username or password that you are typing into the Sign In prompt is not correct or was not read correctly. Please confirm that those are exactly the same as the ones you use elsewhere. Note that since this is your company's TFS server, the username should include a domain.

Thanks,
Jason

@ghost
Copy link
Author

ghost commented Feb 21, 2017

Hi, I tried both (by default it prompts my username with domain), and in all cases it shows the same error message.

@jpricket
Copy link
Member

Hi @citi-raulfernandez,

After talking with some of our experts here, there may be more going on. Could you describe your server topology. I.e. is there a proxy server? Is there a load balancer? Or any other hoops that the authentication may have to go through?

Thanks,
Jason

@ghost
Copy link
Author

ghost commented Feb 21, 2017

Let me find out, and I'll come back to you.

@skynode
Copy link

skynode commented Apr 8, 2017

@jpricketMSFT I'm using a VPN and running VS Code inside a VMWare instance. I get the following error message after entering my PAT:

Failed Request: Not found (404) - https://skynode.visualstudio.com/my_project/_git/vsts/info

Any ideas on how to resolve this?

Thank you.

@skynode
Copy link

skynode commented Apr 8, 2017

@jpricketMSFT Never mind. I figured it out. Apparently I omitted a repo after https://skynode.visualstudio.com/my_project/_git/

Correct line should have been:
https://skynode.visualstudio.com/my_project/_git/<my_repo>

Thank you.

@jpricket
Copy link
Member

@skynode - Glad you figured it out! Thanks for posting the solution.

@jeffyoung
Copy link
Contributor

Closing since there has been no follow-up.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants