Let your organisation's application sign people in with Captivo ID: standard OpenID Connect, authorization code + PKCE.
On your account page: Applications → New application. Enter the name and redirect URIs; you receive a client id and a client secret shown once. Keep the secret on your application's server side; never hand it to the browser.
Every OIDC library finds the rest from this document:
| Endpoint | Value |
|---|---|
issuer | https://id.captivo.io |
discovery | https://id.captivo.io/.well-known/openid-configuration |
authorization | https://id.captivo.io/auth |
token | https://id.captivo.io/token |
userinfo | https://id.captivo.io/me |
jwks | https://id.captivo.io/jwks |
end_session | https://id.captivo.io/session/end |
response_type=code, scope=openid email profile org, state, nonce, PKCE (code_challenge_method=S256).code.code, code_verifier and your client credentials (HTTP Basic) to the token endpoint; you receive an ID token and an access token.iss, aud = client id, nonce, exp). Start the session.The ID token and userinfo carry the following; each claim comes with the scope beside it. amr is in the ID token only.
| Claim | Scope | Meaning |
|---|---|---|
sub | openid | The person's permanent id; unchanged if the e-mail changes. |
amr | openid | How they were verified; the values are below. |
email | email | The verified e-mail address. |
email_verified | email | Always true: an unverified address cannot sign in. |
name | profile | Full name, when known. |
org | org | The id of the organisation the app is registered in. |
org_name | org | The organisation's name. |
role | org | The person's role in the organisation: OWNER, ADMIN, MEMBER; null if not a member. |
The amr values. To decide whether a second step was taken, look for otp or mfa.
pwd | Password. |
otp | An authenticator code or a recovery code. |
trusted | The person had ticked "don't ask again on this device for 30 days" in this browser, so no code was asked this time (comes with pwd and otp). |
passkey | Signed in with a passkey. |
mfa | Two factors were taken; e.g. a passkey unlocked with the device's lock, or MFA reported by the enterprise provider. |
fed | Signed in through the organisation's own identity provider; the provider's own amr values are kept too. |
With "members only" (the default) only accepted members of your organisation receive a token; anyone else is refused even after verifying their identity. With it off, anyone with a Captivo account signs in and role is null for non-members. Tick groups for the app under Groups and access on the organisation page and only their members sign in; that rule requires membership whatever the switch says.
Send the user to the end_session_endpoint with id_token_hint and a registered post_logout_redirect_uri.
# 1. Send the browser here (your library builds this) https://id.captivo.io/auth?response_type=code&client_id=app_xxx&redirect_uri=https%3A%2F%2Fapp.example%2Fcallback &scope=openid%20email%20profile%20org&state=...&nonce=...&code_challenge=...&code_challenge_method=S256 # 2. Exchange the code on your server curl -u 'app_xxx:CLIENT_SECRET' https://id.captivo.io/token \ -d grant_type=authorization_code -d code=CODE -d code_verifier=VERIFIER \ -d redirect_uri=https://app.example/callback # 3. Read the person curl -H 'Authorization: Bearer ACCESS_TOKEN' https://id.captivo.io/me
For applications that do not speak OpenID Connect (Jira, Salesforce, AWS…) Captivo ID is a SAML 2.0 identity provider.
NameID | The e-mail address (emailAddress format). |
email, name, firstName, lastName | The person's address and name. |
role, organization | Their role in the organisation (OWNER / ADMIN / MEMBER) and its name; left out for non-members. |
Signature | Both the Response and the Assertion, RSA-SHA256. |
AuthnContext | https://refeds.org/profile/mfa after a two-step sign-in, PasswordProtectedTransport otherwise. |
Not supported | SAML single logout, encrypted assertions, IdP-initiated sign-in. |
Let your organisation's own systems (HR, directory, scripts) manage members and groups and read the activity log. Create a key under Admin API keys on the organisation page (owners only); it is shown once. Send Authorization: Bearer cid_… with every request.
| Endpoint | Body | |
|---|---|---|
GET | /api/v1/organization | — |
GET | /api/v1/members | — |
GET | /api/v1/members/{id} | — |
POST | /api/v1/members | {"email": "…", "role": "MEMBER"} |
PATCH | /api/v1/members/{id} | {"role": "ADMIN"} · {"suspended": true} · {"expiresAt": "2026-12-31T21:00:00Z" | null} |
DELETE | /api/v1/members/{id} | — |
POST | /api/v1/members/{id}/reset-two-step | — |
GET | /api/v1/audit?since=2026-11-01T00:00:00Z&limit=500 | — |
GET | /api/v1/groups | — |
POST | /api/v1/groups | {"name": "Finance"} |
DELETE | /api/v1/groups/{id} | — |
POST | /api/v1/groups/{id}/members | {"member": "<member id>"} |
DELETE | /api/v1/groups/{id}/members/{member id} | — |
| Scope | A read key only GETs; a write key acts with an owner's authority. The last owner cannot be removed or demoted. |
| Logging | Every change is written to the activity log as api:<key name> and pushed to Captivo Portal and Access at once. |
| Limit | 300 requests a minute per key; beyond that 429 with Retry-After. |
| Errors | JSON: {"error": "code", "message": "…"}; 401 bad key, 403 not allowed, 404 not found, 409 refused by a rule. |
| Invitations | POST /members answers 201: {"id", "email", "role", "status": "invited", "inviteLink", "mailed"}. The link works for 7 days; with mailed false no e-mail went out, so pass the link on yourself. |
| Activity log | Without since, the last 7 days; limit defaults to 500, at most 1000. Newest first. |
curl -H "Authorization: Bearer cid_…" https://id.captivo.io/api/v1/members
curl -X POST -H "Authorization: Bearer cid_…" -H "Content-Type: application/json" \
-d '{"email":"ayse@firma.com","role":"MEMBER"}' https://id.captivo.io/api/v1/membersEntra ID and Okta write the organisation's people and groups to this address. The token is created on the enterprise sign-in page and sent as Authorization: Bearer … with every request. Setup steps are in the setup guide.
| URL | https://id.captivo.io/scim/v2 |
| Discovery | GET /ServiceProviderConfig, /ResourceTypes and /Schemas; these need the token too. |
| Resources | /Users and /Groups: GET, POST, PUT, PATCH, DELETE. |
| Filter | attr eq "value" only. Users: userName, emails.value, externalId, id, active. Groups: displayName, externalId, id. At most 200 results a page. |
| Address | userName must be an e-mail address under one of the organisation's verified domains. |
| Limit | 600 requests a minute per organisation. |
| Not supported | Bulk, sorting, ETags, password change. |
The organisation's owner gives an HTTPS receiver address under Event stream (SIEM) on the organisation page; the activity log is POSTed there every minute. The signing secret (whsec_…) is shown once, when the stream starts.
| Body | A JSON array (application/json) or one event per line, NDJSON (application/x-ndjson). At most 200 events a request, oldest first. |
| Event | id, at (ISO 8601), action, organizationId, actor, subject, ip, details. |
| X-Captivo-Timestamp | When it was sent, Unix time in seconds. |
| X-Captivo-Signature | v1= followed by HMAC-SHA256(secret, "<X-Captivo-Timestamp>.<body>"), in hex. |
| Authorization | Sent as typed, if you gave one when creating the stream (e.g. a Splunk HEC token). |
| Delivery | Only a 2xx counts. With no answer in 10 seconds or any other status, the same events are retried after 1, 2, 4… minutes (at least once an hour); redirects are not followed. An event can arrive twice; deduplicate on id. |
| Test | "Send a test event" sends a single event whose action is stream.test. |
Verify the signature over the raw body (Node.js):
import { createHmac, timingSafeEqual } from "node:crypto";
// rawBody: the request body exactly as received, before any JSON parsing
const ts = req.headers["x-captivo-timestamp"];
const expected = "v1=" + createHmac("sha256", process.env.CAPTIVO_STREAM_SECRET)
.update(`${ts}.${rawBody}`).digest("hex");
const got = String(req.headers["x-captivo-signature"] ?? "");
const ok = got.length === expected.length && timingSafeEqual(Buffer.from(got), Buffer.from(expected));