API Documentation

Official API reference and OIDC discovery documentation for clouburstlab identity provider.

OIDC Discovery
Returns the OpenID Connect discovery document containing issuer, endpoints, and supported scopes/claims.
GET/.well-known/openid-configuration

Response

JSON object with OpenID Provider metadata.
Authorization Endpoint
Initiates the OAuth 2.0 Authorization Code flow.
POST/api/sso/v1/authorize

Parameters

NameTypeRequiredDescription
client_idstringRequiredYour application's Client ID.
redirect_uristringRequiredWhere to redirect the user after auth.
response_typestringRequiredMust be 'code'.
scopestringOptionalSpace-separated scopes (e.g., 'openid profile email').
statestringRequiredOpaque value for maintaining state to mitigate CSRF.
code_challengestringRequiredPKCE code challenge.
code_challenge_methodstringRequiredMust be 'S256'.

Response

Redirects to the redirect_uri with a `code` and `state`.
Token Endpoint
Exchanges an authorization code or refresh token for access tokens.
POST/api/sso/v1/token

Parameters

NameTypeRequiredDescription
grant_typestringRequired'authorization_code' or 'refresh_token'.
codestringRequiredThe authorization code (if grant_type is authorization_code).
redirect_uristringRequiredMust match the original redirect URI.
client_idstringRequiredYour application's Client ID.
client_secretstringRequiredYour application's Client Secret.
code_verifierstringRequiredPKCE code verifier.

Response

JSON object containing access_token, id_token, and refresh_token.
UserInfo Endpoint
Retrieves claims about the authenticated end-user.
GET/api/sso/v1/userinfo

Parameters

NameTypeRequiredDescription
AuthorizationheaderRequiredBearer token containing the access token.

Response

JSON object containing user claims (sub, name, email, etc.).
JWKS Endpoint
Returns the JSON Web Key Set used to sign ID tokens.
GET/api/sso/v1/jwks.json

Response

JSON Web Key Set containing public keys.
Token Revocation Endpoint
Revokes an active access or refresh token.
POST/api/sso/v1/revoke

Parameters

NameTypeRequiredDescription
client_idstringRequiredYour application's Client ID.
client_secretstringRequiredYour application's Client Secret.
tokenstringRequiredThe token you want to revoke.
token_type_hintstringOptionalOptional hint ('access_token' or 'refresh_token').

Response

Empty 200 OK response on success.