vs code Device Code Flow Alternatvie
I've been using GCM on an ssh linux with pass+az login for years but recently device code flow was locked down inside microsoft effectively breaking it. VSCode ssh extension has been improved so that az login automatically port forwrds.
Could GCM be configured to call az login equivalent to az login --use-device-code and let vscode do its magic?
There are some alternatives being bandied about but require manual port forwarding which is less user firendly https://github.com/phealy/azure-cli-extensions
Another option https://gist.github.com/phealy/d4606563101b6f50b572a5934f74336e but having something "upstream " would be good here.
Another option out there is
Could use
go install github.com/hickford/git-credential-azure@latest
git config --global credential.helper "cache --timeout 21600"
git config --global --add credential.helper "azure "
git config --global credential.useHttpPath true
git config --global url."https://dev.azure.com/msazure/".insteadof
"https://msazure.visualstudio.com/DefaultCollection/"
But again not upstream.
I think that ideally we'd just implement using AzureCliCredential to get the token any time GCM needs one and rely on regular Git caching.
I've been using GCM on an ssh linux with pass+az login for years but recently device code flow was locked down inside microsoft effectively breaking it. VSCode ssh extension has been improved so that az login automatically port forwrds.
Could GCM be configured to call az login equivalent to az login --use-device-code and let vscode do its magic?
There are some alternatives being bandied about but require manual port forwarding which is less user firendly https://github.com/phealy/azure-cli-extensions