microsoft / azure-devops-intellij

IntelliJ IDEA plug-in for Visual Studio Team Services and Team Foundation Server (TFS)
MIT License
151 stars 95 forks source link

Feature Login with PAT #442

Open marzelwidmer opened 3 years ago

marzelwidmer commented 3 years ago

It will be nice to login with a PAT without OAuth PoP Up. Issues in some corporate environments.

emosesrajkumar commented 3 years ago

I echo this. It will be super helpful. Each time I clone a project and open the IDE, it launches login screen and adds a new PAT which in the long run its difficult to maintain which ones are needed and which ones to deny.

emosesrajkumar commented 3 years ago

@marzelwidmer

I did the following on the terminal and it worked, Now I maintain the PAT on multiple projects and it does not show me popup.

on the Intellij terminal

  1. check the remotes git remote -v
  2. remove the remotes if they need to be changed git remote remove origin
  3. add the remote as following git remote add origin https://user_name:PAT@dev.azure.com/$organization/$project/_git/$repoName
  4. check the remotes again git remote -v It should show

origin https://user_name:PAT@dev.azure.com/$organization/$project/_git/$repoName (fetch) origin https://user_name:PAT@dev.azure.com/$organization/$project/_git/$repoName (push)

However I did upgrade my git to latest before executing the above steps. My git version is

C:\>git --version
git version 2.32.0.windows.1
marzelwidmer commented 3 years ago

@emosesrajkumar I get still this.. when I try to connect resp. Import project into Azure DevOps Service

image