For AI agents: the complete documentation index is at llms.txt. Every page is also available as markdown by appending .md to its URL, or by sending an Accept: text/markdown request header.

OpenID Connect (OIDC)

Enterprise—

OpenID Connect (OIDC) enables SSO authentication with external Identity Providers.

Learn more

OpenID Connect (OIDC) integrates with Identity Providers (IdP) external to QuestDB.

It is a convenient way to integrate QuestDB into your enterprise environment, and it provides SSO (Single Sign-On) for the Web Console.

Microsoft Active Directory and Azure AD, for example, can be turned into an Identity Provider.

Specific installation steps depend on the type of the provider.

Architecture overview​

Altogether, the architecture appears as such:

Overall architecture
Architecture diagram

We can break it down into core components.

Web Console​

QuestDB's interactive UI. Users must authenticate before accessing the database via the interface.

The Web Console uses PKCE (Proof Key for Code Exchange) to secure the authentication and authorization flow.

In OAuth2/OIDC terms, the Web Console is referred to as the client, and it is assigned an identifier: the Client Id.

Each application which integrates via OIDC should be given a different Client Id.

OIDC Provider​

Typically consists of a number of modules.

We are interested in two of them only.

  1. The Identity Provider holds user identities and user information, capable of authenticating users, and to issue an ID Token which uniquely identify them.

  2. The Authorization Server grants access to resources, such as a database, in the form of access tokens.

The OIDC Provider usually integrates with a number of applications which require different access to a number of resources.

These clients communicate with the OIDC Provider via its endpoints.

It exposes a number of APIs, including the Authorization, Token and User Info endpoints.

QuestDB​

The database, in OAuth2/OIDC terms the protected resource or resource server.

Only processes requests which contain the bearer token selected by its OIDC configuration: normally the access token, or the ID token when group memberships are encoded in it.

Where to go next​

PageCovers
How sign-in worksThe Authorization Code Flow with PKCE, step by step
Client discovery and tokensThe settings endpoint, and which of the two tokens to send
Device flowHeadless sign-in for a CLI, container, or notebook kernel
Client integration patternsBrowser clients, Jupyter, CLI tools, unattended jobs, PGWire
Mapping groups and permissionsTurning Identity Provider groups into QuestDB permissions
PingFederateProvider setup walkthrough
Microsoft Entra IDProvider setup walkthrough

For the acl.oidc.* settings, see the OIDC settings reference.

Where each section moved​

These anchors are kept so that existing links keep working. Prefer the pages above when adding new links.

SectionNow at
Authentication and authorization flowHow sign-in works
Secret generationHow sign-in works
Prove identityHow sign-in works
Scope consentHow sign-in works
RedirectionHow sign-in works
Credential requestHow sign-in works
Credentials receivedHow sign-in works
Database accessHow sign-in works
Find user informationHow sign-in works
Receive user informationHow sign-in works
Permission checkHow sign-in works
User permissionsMapping groups and permissions
Mapping user permissionsMapping groups and permissions
Interactive clientsClient integration patterns
Browser-based clientsClient integration patterns
Jupyter notebookClient integration patterns
Externalizing credentialsClient integration patterns
Enable ROPCClient integration patterns
CLI and standalone applicationsClient integration patterns
Non-interactive clientsClient integration patterns
OIDC for the PGWire endpointClient integration patterns
Active DirectoryPingFederate or Microsoft Entra ID
PingFederatePingFederate
Set up PingFederate clientPingFederate
Access Token Manager settingsPingFederate
Authorization Server settingsPingFederate
Set up a Microsoft Entra ID Data SourcePingFederate
Set up a Password Credential ValidatorPingFederate
Set up an Identity ProviderPingFederate
Add groups to OIDC policy managementPingFederate
Enable Resource Owner Password Credentials flowPingFederate
QuestDB configuration for PingFederatePingFederate
Confirm QuestDB mappings and loginPingFederate
Microsoft Entra IDMicrosoft Entra ID
Set up the client application in Entra IDMicrosoft Entra ID
QuestDB configurationMicrosoft Entra ID
Map groups and grant permissionsMicrosoft Entra ID
Confirm group mappings and loginMicrosoft Entra ID
Configuration optionsOIDC settings

See also​