Azure / azure-devops-cli-extension

Azure DevOps Extension for Azure CLI
https://docs.microsoft.com/en-us/cli/azure/ext/azure-devops/?view=azure-cli-latest
MIT License
618 stars 240 forks source link

[Feature Request]: Token generator for security commands #754

Open geverghe opened 4 years ago

geverghe commented 4 years ago

Is your feature request related to a problem? Please describe. Can we get a friendly az devops security token method to which I pass a bunch of things, so it can spit out the full token? I have to look up 3 guids and do a rearch&replace over my branch pointer. Who knows these things anyway?

Describe the solution you'd like

Additional context

jessehouwing commented 4 years ago

Since most securables have an URI in Azure DevOps and since most json payloads have a _self link, it would make sense to allow me to pass one of those in.

It probably trumps having to supply all elements that make up the token, as these are different for each element. E.g. org, project, repo id, branch ref for a branch. And org, project, Team GUID for the Team Administrator.

jessehouwing commented 4 years ago

If an option to pass in individual elements is considered, then please, please, please, allow us to pass in both name as well as ID. I'm slowly going crazy having to lookup 6 GUIDS, Descriptors, Tokens and other unreadable things in order to do what I need.

lukeschlather commented 4 years ago

I'm looking for a command to generate a Personal Access Token with some scopes. (Basically a CLI replacement for https://dev.azure.com/strivr/_usersSettings/tokens ) Is that this?

ishitam8 commented 4 years ago

@lukeschlather . There is no command to generate Personal Access token. You will have to use UI only for this . Also, this feature request talks about Security token (the tokens which are used in security permission commands) and not PAT.