Skip to content
Docs
Qubitara Central

OAuth 2.0 and OpenID Connect

Updated Version 2CENTRAL-47

For custom web, mobile and service applications that authenticate against Central with modern tokens.

Endpoints#

Endpoint

Address pattern

Discovery

https://central.qubitara.com/oauth2/<org>/.well-known/openid-configuration

Authorization

.../oauth2/<org>/authorize

Token

.../oauth2/<org>/token

JWKS

.../oauth2/<org>/keys

Web and mobile: Authorization Code + PKCE (required)#

Per IETF RFC 7636 §4.1, generate a code_verifier that is a high-entropy random string using only the unreserved characters [A-Z] / [a-z] / [0-9] / "-" / "." / "_" / "~", with a minimum length of 43 and a maximum of 128 characters (clients SHOULD use at least 256 bits of entropy). Derive code_challenge = BASE64URL(SHA256(verifier)).

  1. Redirect to the authorization endpoint with response_type=code, client_id, redirect_uri, scope=openid profile email, state, nonce, code_challenge and code_challenge_method=S256.

  2. Exchange the code with the code_verifier at the token endpoint.

Services: Client Credentials#

Use grant_type=client_credentials with a client ID and secret (or private_key_jwt) to obtain an access token for machine-to-machine calls.

Token validation#

  • Verify the JWT signature against the JWKS.

  • Validate iss, aud, exp, and nonce (for ID tokens).

  • Check scopes per endpoint.

  • Prefer short-lived access tokens with refresh rotation.