Login from Git to an Azure DevOps account in Linux

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] welcome to this new video on git and in this video i'll show you how to login to your devazure.com server using the linux machine in the previous video i've demonstrated you how easy is login and persistence of your login information thanks to windows credential manager and thanks to the plugin that is automatically installed on windows to cache your store credential and to automate your login experience against your dev azure.com address and now i'll show you how you should proceed on linux first of all you have a link in microsoft included in the description of the video where you can find all the instructions to install your credential manager and while in windows it's an automatic part of distillation procedure in mac os and linux you need to do something manually so in linux you can install as an example from dbm packages and you can just go to the github.com git credential manager repository and you have the distribution so you can download your debian package and you can simply install with the dpkg command the only difference is the all linux distribution require additional configuration and that is because you don't have an unified way on storing your credential on linux and while in windows you have windows credential manager in all your generated personal latches token are stored inside the windows credential manager in linux you need to install and configure one of the supported credential store like free desktop secret service api or a gpg pass compatible file or the git built in credential cache and you have various option and you can use the one that suits you most okay just read these um files and you can understand the various options you can have and how you can configure your your system i'm using now the freedesktop.org serial service api and i have a graphical user interface session so there's no the problem but you can use the gpg pass compatible file and just follow the documentation and you're ready to go if you want to check what is your credential manager configure in the system you can issue just a get config list and you can grab for credential okay so you have you can check that my credential helper is manager core and it's the credential manager of reading.net core given by given to me by microsoft and i have the secret service credential store so i don't have to re-enter the login procedure each time i'm gonna clone um repository now that i am in um temp folder i can issue a git clone and i can pass the login information of the repository i want to clone and if i'm already logged in the procedure will go simply um such as will go successfully since i'm not signing it asked me to open a specific page in microsoft and entering a code to authenticate i can just copy go to my windows and entering the code you're not required to enter the code in the same machine you are now i'm the same machine linux machine i'm using but you can do this in whatever device you want it's just a confirmation that i am really trying to log into this account and here you go now i have a problem probably because i cannot create an item in the locket collection and that's because i've i've pressed cancel when it asks for my password so this shows you that the token is stored securely okay now i'm the log library sonos crowd and i issue a get fetch and it is trying to authenticating but it does not found any kind of credential so it asks me to do the procedure and this time i want you to understand one important thing i'm pushing continue and the windows authentication required asked me for the password of my user because the the command line the get tool it's it's requiring to re-authenticate to unlock my keyring where it can store the key so i get not asked for this procedure each time i'm conducting the server once i've typed my exit password i'm now logged in and the git tool can correctly use my configured my configure secret service credential store to simply reuse the login i the login token i have so i i don't need to repeat each time i'm contacting the server that open device login and entering a code as a final confirmation that behind the scenes the procedure always create a new get token i have moved to my account user setting and personal access token page where i've previously removed all the my personal access token except one full-on laptop and i have a couple of new token and i have truetoken because the first token was generated and give back to my application but i've pressed cancel when my credential store asked for my user password to access my key ring where the token can be stored so i was forced to do another login procedure using the same sign into your account procedure with a microsoft page special page so the my git received another token but this time i've typed my exact password on my of my user account so the get tool was able to store the token inside my key ring and so if i'm issuing a get fetch it can recover the token from the key ring so i'm not asked for credential each time i issue a command that contact the server as a final confirmation i can simply revoke both token going back to my get my terminal i'm issuing a get fetch and okay it is the same experience i had on windows gate tells me fatal authentication failed for my url so the reason is it retrieved it retrieved my personal access token from the hearing and it got rejected because i have simply revoked from my account so if you use a lot computer in a lot of computer and if you sometimes use shared computer please be sure that you frequently check your personal access token page to revoke all tools all token that you are not supposed to keep alive clearly if i'm issuing a get fetch again the git tool is now aware that the token previously stored it is gone so it kicks another authentication page with a useful go to the device login page and entering another code to authenticate and the procedure is always the same it asked me to confirm that i'm indeed trying to sign into visual studio i cannot close the windows i come here and since i already previously insert my user password this windows the terminal is able to reach my credential store my um key ring so if i'm issuing a get fetch again i'm logged in and if i'm going to refresh my page with personal latches token i have indeed another get personal access token that was generated by the login procedure and that's almost all you need to know in linux thanks for watching and i'll wait you for the next video
Info
Channel: CodeWrecks
Views: 2,405
Rating: undefined out of 5
Keywords: Git
Id: NRd27LBZwYI
Channel Id: undefined
Length: 9min 41sec (581 seconds)
Published: Sat Mar 26 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.