Credential Injection for Private Feeds
Securely access private NuGet feeds with automatic credential injection.
Overview
Credential injection allows you to access authenticated NuGet feeds without storing passwords in configuration files.
Supported Platforms
- Azure Artifacts
- Private NuGet servers
- Authenticated package sources
- Corporate NuGet feeds
Configuration
Setting Up Credentials
- Open the NuGet Manager
- Click the settings icon
- Select "Configure Credentials"
- Add your feed URL and credentials
Credential Storage
Credentials are stored securely:
- Encrypted in VS Code's secret storage
- Never stored in plain text
- Per-user configuration
- Not committed to source control
Using Azure Artifacts
For Azure DevOps feeds:
- Get your Personal Access Token (PAT)
- Configure it in the NuGet Manager
- The extension will inject credentials automatically
Authentication Flow
When accessing a private feed:
- Extension detects authenticated feed
- Retrieves stored credentials
- Injects them into the NuGet request
- Package operation proceeds normally
Troubleshooting
Authentication Failed
If authentication fails:
- Verify credentials are correct
- Check PAT hasn't expired
- Ensure proper feed permissions
- Reconfigure credentials
Feed Not Accessible
If you can't access the feed:
- Verify feed URL is correct
- Check network connectivity
- Ensure you have access rights
- Test credentials in a browser