Allow users to connect to ClickHouse Cloud through their existing SSO account, without managing a separate database username and password. The experience should be similar to clickhouse-client --login, which uses a browser-based OAuth device flow.
clickhouse-connect already supports access_token and token_provider. The remaining work is to provide a helper that:
- Runs the Cloud login flow.
- Exchanges the identity-provider token for a ClickHouse service JWT.
- Handles token refresh.
- Works with both sync and async clients.
This would address the original Google Workspace use case through Cloud's login flow. The existing token-provider API could serve as the integration point.
Allow users to connect to ClickHouse Cloud through their existing SSO account, without managing a separate database username and password. The experience should be similar to
clickhouse-client --login, which uses a browser-based OAuth device flow.clickhouse-connect already supports
access_tokenandtoken_provider. The remaining work is to provide a helper that:This would address the original Google Workspace use case through Cloud's login flow. The existing token-provider API could serve as the integration point.