- Qubitara Central
- Integrations
- OAuth 2.0 and OpenID Connect
OAuth 2.0 and OpenID Connect
For custom web, mobile and service applications that authenticate against Central with modern tokens.
Endpoints#
Endpoint | Address pattern |
|---|---|
Discovery |
|
Authorization |
|
Token |
|
JWKS |
|
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)).
Redirect to the authorization endpoint with
response_type=code,client_id,redirect_uri,scope=openid profile email,state,nonce,code_challengeandcode_challenge_method=S256.Exchange the code with the
code_verifierat 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, andnonce(for ID tokens).Check scopes per endpoint.
Prefer short-lived access tokens with refresh rotation.