Git Credential Azure is a specialized Git credential helper designed to streamline authentication with Azure Repos, a component of Azure DevOps. This tool simplifies the process of securely accessing repositories hosted on Azure, ensuring seamless integration into your development workflow.
Key Features:
Azure Repos Authentication: Specifically engineered to authenticate with Azure Repos, providing secure access to your codebase.
Browser-Based Login: Initiate authentication through a browser window for a user-friendly experience during the first setup.
Non-Interactive Subsequent Logins: After initial configuration, subsequent authentications occur without user intervention, enhancing efficiency.
Cross-Platform Compatibility: Installable via winget on Windows, ensuring availability across different operating systems.
Audience & Benefits:
Ideal for Git developers and teams utilizing Azure Repos, this tool offers:
Enhanced Security: Secure authentication methods protect your credentials and repository access.
Streamlined Workflow: Integrates effortlessly with existing Git workflows, minimizing disruptions.
Platform Flexibility: Supports various platforms, ensuring compatibility with your development environment.
By leveraging Git Credential Azure, users benefit from secure, efficient, and integrated authentication solutions tailored to their Azure Repos needs.
README
git-credential-azure
git-credential-azure is a Git credential helper that authenticates to Azure Repos (dev.azure.com). Azure Repos is part of Azure DevOps.
The first time you authenticate, the helper opens a browser window to Microsoft login. Subsequent authentication is non interactive.
Go users can install the latest release to ~/go/bin with:
go install github.com/hickford/git-credential-azure@latest
Configuration
How it works
Git is cleverly designed to support multiple credential helpers. To fill credentials, Git calls each helper in turn until it has the information it needs. git-credential-azure is a read-only credential-generating helper, designed to be configured in combination with a storage helper.
git config --global --unset-all credential.helper
git config --global --add credential.helper "cache --timeout 21600" # six hours
git config --global --add credential.helper azure
# to also use git-credential-oauth
git config --global --add credential.helper oauth
You may choose a different storage helper such as osxkeychain, wincred or libsecret, but git-credential-azure must be configured last. This ensures Git checks for credentials before generating credentials.
If you use more than one user or organization across Azure Repos, make sure that the remote URLs include usernames. This is the default if you copied the URLs from the Azure Repos web interface.
Alternatively, you can set credential.useHttpPath to store separate credentials for each repo: