Skip to content

Feature/add connection string auth mode#49

Merged
brandochn merged 2 commits into
mainfrom
feature/add-connection-string-auth-mode
Apr 4, 2026
Merged

Feature/add connection string auth mode#49
brandochn merged 2 commits into
mainfrom
feature/add-connection-string-auth-mode

Conversation

@brandochn
Copy link
Copy Markdown
Owner

This pull request adds support for a new "Connection String" authentication mode, allowing users to provide a full ADO.NET connection string for SQL Server or Azure SQL Database. The update ensures this mode is handled securely and consistently throughout the backend, including storage, engine detection, and profiling logic. It also updates the documentation to reflect the new authentication method and its availability on both the VS Code Marketplace and Open VSX Registry.

Authentication Mode Enhancements:

  • Introduced a new ConnectionString authentication mode (AuthenticationMode.ConnectionString), allowing users to connect using a full ADO.NET connection string. The mode is now handled in all relevant backend models and logic, including secure storage and retrieval. [1] [2] [3] [4] [5] [6] [7]

  • Updated the JsonRpcServer to handle "Connection String" mode: parses and normalizes the connection string, sets the application name, auto-detects the database engine type if needed, and ensures secure handling and storage of the connection string. [1] [2] [3] [4] [5] [6] [7] [8]

Database Schema and Migration:

  • Extended the SQLite schema to store the raw connection string (encrypted at rest), and added a migration step to add the ConnectionString column if it does not exist. [1] [2]

Documentation Updates:

  • Updated README.md to document the new "Connection String" authentication mode, including its description in the authentication modes table and instructions for installing the extension from both the VS Code Marketplace and Open VSX Registry. [1] [2] [3] [4]

- Implemented a new authentication mode allowing users to input a full ADO.NET connection string.
- Updated the UI to include a textarea for the connection string input.
- Enhanced validation to ensure the connection string is provided when this mode is selected.
- Adjusted the connection settings and recent connections models to accommodate the new authentication mode.
- Updated tests to cover scenarios for the new connection string mode.
- Modified the changelog and README to reflect the new feature.
Normalize connection strings in server when using ConnectionString mode
by
setting ApplicationName='LightQueryProfiler' before creating
ApplicationDbContext. This tags profiler-created SQL connections via
client_app_name so ProfilerService.IsProfilerGeneratedEvent can exclude
profiler-generated XEvent operations
@brandochn brandochn merged commit 3c8c1d4 into main Apr 4, 2026
1 check passed
@brandochn brandochn deleted the feature/add-connection-string-auth-mode branch April 4, 2026 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant