Insufficient permissions for GIT access TFS (Using Personal access Tokens to access Visual Studio Online)

Source: Internet
Author: User
Tags using git

The following error occurred while using Git to clone the code on the TFS server to Local:

 for ' https://***.visualstudio.com/***project/_git/***/ '

Workaround:

Read the original text (https://roadtoalm.com/2015/07/22/using-personal-access-tokens-to-access-visual-studio-online/)

People who use Visual Studio Online for a while is probably familiar with the alternate credentials. These is used when accessing the REST API or when using a external client for accessing your Git repositories.

You configure your alternate credentials on your [My Profile] page and fill a username and password of your choice.

Once you enable your credentials, you can use these credentials when doing a REST call or (easier to test) clone a Git rep Ository

This is great and not the most secure to doing things.

Personal Access Tokens

In the update of July 7th, we are now having the ability to use Personal Access Tokens as a alternative to the Alternate Creden Tials. Instead of sending our username and password over the wire we a now use a secure token so we can scope to a timeframe a nd to Functionality within VSO. On the [My Profiles] page you can configure one or more Personal Access Tokens. For example a tokens to access Code Features.

When you create the token, you see a tokens (only visible after creation!), so you should copy and keep safe.

This token alone are sufficient to authenticate against VSO. So, if you are now clone a Git repository, you are only having the to fill with this token in the Password box. Username can is empty or any value

The great thing is so you can revoke rights or the tokens afterwards and make sure that people cannot access stuff Anymor E.

Hope this helps!

Insufficient permissions for GIT access TFS (Using Personal access Tokens to access Visual Studio Online)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.