Skip to content

Support interactive ClickHouse Cloud SSO login #387

Description

@treysp

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions