microsoft / Git-Credential-Manager-for-Mac-and-Linux

Git Credential Manager for Mac and Linux stores credentials for Git version control securely. Provides secure logon for Visual Studio Team Services (visualstudio.com).
Other
406 stars 240 forks source link

git-credential-manager on linux failed to get token #121

Closed RiverLi closed 5 years ago

RiverLi commented 5 years ago

git-credential-manager on linux failed to get token:

Unmet requirements for the 'JavaFx' provider:

Unmet requirements for the 'StandardWidgetToolkit' provider:

RiverLi commented 5 years ago

This is resolved using different way. A microsoft support engineer helped me to find out the root cause. The root cause is my organization set a device rule in our Azure, the device rule does not allow Linux platform. We did not have permission to change the device rule of our organization(we are not subscription admin of our company azure account). It is resolved by generating a credential in VSTS. In the page of VSTS code repository, click "Clone", a pop up came up, and then click "Generate Git credentials". It will generate a set of user name and password for you. Copy and paste it. Save it to a file long time usage. Please see the screen shot. image

For example, the user name and password looks like: xxxx@yyyyy.com jreur8re84mdj3k3mdlmsslkrjlkesflk434l5l43j5lk435l43v88 The 1st row is user name. Usually it is your email address used to access VSTS. The 2nd row is password. When use git-credential-manager, a directory structure is created, ~/.VSTeamServicesAuthPlugin If the user is root, it should be /root/.VSTeamServicesAuthPlugin A file named insecureStore.xml in the folder, edit and paste the password you got above to the file. like this:

`<?xml version="1.0" encoding="UTF-8" standalone="no"?>

git:https://xxxxxx.visualstudio.com jreur8re84mdj3k3mdlmsslkrjlkesflk434l5l43j5lk435l43v88 Personal Access Token ` For setting up git-credential-manager, please follow this link: https://github.com/microsoft/Git-Credential-Manager-for-Mac-and-Linux/blob/master/Install.md. What I used is the git-credential-manager.jar version. It seemed to be simple for me. It just requires Java, and a couple of commands to run. After all these above, your git on Centos Linux should be working properly. You should be able to do all the git operations with your credential genrated from VSTS.