Custom Authentication Providers Support for Cody #6526
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Custom Authentication Provider Support for Cody
This PR introduces support for custom authentication providers in Cody, allowing users to integrate with custom authentication proxies and handle complex authentication scenarios.
Feature Overview
The custom authentication provider feature allows users to configure external executables that generate authentication headers for specific endpoints. This is particularly useful for enterprise setups using HTTP authentication proxies.
Configuration
Users can configure custom authentication providers in their vscode settings.json using the following structure:
User can define as many external providers as needed.
TBD: If only one provider is needed and login using this provider should be forced, it will be possible to accomplish using
overrideServerEndpoint
.Configuration Options
How It Works
Testing Locally
Start the provided reverse proxy:
python agent/scripts/reverse-proxy.py https://your-sourcegraph-instance.com 5555
Add the proxy configuration to your settings:
http://localhost:5555
as the endpointServer Configuration
The Sourcegraph instance and proxy must be configured to accept HTTP authentication proxy headers as described in the Sourcegraph documentation.
Security Considerations
Missing features
Test plan
Testing Locally
section.Changelog