---
title: "Introducing JWT authentication in ClickHouse Cloud"
description: "ClickHouse Cloud (26.4+) can authenticate clients with short-lived JWTs from any OpenID Connect provider such as Okta or Microsoft Entra, replacing database passwords."
url: "https://swe.quest/articles/introducing-jwt-authentication-in-clickhouse-cloud-915f0551148ce056"
canonical: "https://clickhouse.com/blog/introducing-jwt-authentication-in-clickhouse-cloud"
source: "ClickHouse"
published: "2026-10-08"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 8
tags: ["identity-auth","databases","analytics"]
---

# Introducing JWT authentication in ClickHouse Cloud

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2026-10-08, 8 min read, Announcement. Original: [https://clickhouse.com/blog/introducing-jwt-authentication-in-clickhouse-cloud](https://clickhouse.com/blog/introducing-jwt-authentication-in-clickhouse-cloud)

## Summary

ClickHouse Cloud (26.4+) can authenticate clients with short-lived JWTs from any OpenID Connect provider such as Okta or Microsoft Entra, replacing database passwords. ClickHouse verifies the token signature against the provider's JWKS, then creates an in-memory ephemeral user named JWT::\<subject\>::\<claims\_hash\> carrying the roles from the token, and removes it after expiry, so no CREATE/DROP USER provisioning is needed. Quotas, settings profiles and row policies attach to a stable UUID derived from issuer, subject and audience, and definer views get a persistent non-login shadow user so they survive token expiry. Client libraries for JS, Python, Go and Java accept bearer tokens with refresh hooks, and custom providers require the Enterprise plan.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)

## Prerequisites

- JWT claims
- OpenID Connect basics
- database roles and grants ([easy posts on Databases](https://swe.quest/tags/databases.md?difficulty=easy))

## Keywords

ClickHouse Cloud, JWT, OpenID Connect, JWKS, Okta, Microsoft Entra, clickhouse-connect

## Related posts

- [New Terraform provider: Manage ClickHouse database users, roles, and privileges with code](https://swe.quest/articles/new-terraform-provider-manage-clickhouse-database-users-roles-and-privileges-de303daee5cfd5b2.md): ClickHouse · 2025-06-20 · Medium · 6 min read · Infrastructure as code, Identity & auth, Databases
  ClickHouse's new clickhousedbops Terraform provider, now generally available, manages databases, users, roles and privilege grants on both ClickHouse Cloud and self-hosted instances.
- [Build "Sign in with Your App" using Supabase Auth](https://swe.quest/articles/build-sign-in-with-your-app-using-supabase-auth-a42222eedce43362.md): Supabase · 2025-12-04 · Medium · 6 min read · Identity & auth, AI agents, PostgreSQL
  Supabase Auth can now act as an OAuth 2.1 and OpenID Connect identity provider, letting a project offer "Sign in with \[Your App\]" to third-party apps, MCP-based AI agents, partner integrations and enterprise SSO.
- [clickhousectl v0.2.0: Postgres, ClickPipes and more](https://swe.quest/articles/clickhousectl-v0-2-0-postgres-clickpipes-and-more-78a4d21808758ecd.md): ClickHouse · 2026-05-20 · Medium · 5 min read · Developer tools, Analytics & OLAP, PostgreSQL, Data pipelines, Cloud platforms
  clickhousectl v0.2.0 adds Postgres management, both local (Docker-backed, keyed on name and major version 16–18) and as ClickHouse Cloud managed Postgres.
- [Building ClickHouse BYOC (Bring Your Own Cloud) on AWS](https://swe.quest/articles/building-clickhouse-byoc-bring-your-own-cloud-on-aws-c91a130e01901112.md): ClickHouse · 2025-03-12 · Medium · 13 min read · Cloud platforms, Kubernetes, Identity & auth, Networking, Multi-tenancy
  ClickHouse BYOC on AWS splits a ClickHouse-hosted management plane from a data plane EKS cluster in the customer's VPC, provisioned automatically with CloudFormation and Crossplane.
- [WTF Are JWTs?](https://swe.quest/articles/wtf-are-jwts-d314ec0dbdbc99c8.md): Neon · 2024-11-29 · Medium · 9 min read · Identity & auth, PostgreSQL, Cryptography, Multi-tenancy
  JSON Web Tokens are compact, signed, self-contained tokens made of three base64url segments (header, payload of registered and custom claims, and an HMAC or RSA signature).

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
