Security token service (RFC 8693 token exchange), per-tenant OIDC federation, SCIM 2.0 provisioning and just-in-time operator access. Access tokens are ES256, 15 minutes, with claims sub, tid, pid, role, amr, jti and jit_grant. See ADR-0007.
Version 1.0.0. Download the OpenAPI specification.
Authentication: bearer, scim.
Operations
| Method | Path | Summary |
|---|
GET | /.well-known/jwks.json | Public signing keys (EC P-256, ES256) |
GET | /.well-known/openid-configuration | OpenID discovery document |
GET | /scim/v2/Groups | List groups (filter displayName eq / externalId eq) |
POST | /scim/v2/Groups | Create group (members must be users of the same tenant) |
GET | /scim/v2/Groups/{id} | Get group |
PUT | /scim/v2/Groups/{id} | Replace group |
PATCH | /scim/v2/Groups/{id} | Patch group (add/remove/replace members, displayName) |
DELETE | /scim/v2/Groups/{id} | Delete group |
GET | /scim/v2/ServiceProviderConfig | SCIM service provider configuration |
GET | /scim/v2/Users | List users (filter userName eq / externalId eq; startIndex, count up to 200) |
POST | /scim/v2/Users | Create user |
GET | /scim/v2/Users/{id} | Get user |
PUT | /scim/v2/Users/{id} | Replace user |
PATCH | /scim/v2/Users/{id} | Patch user (PatchOp; active=false deactivates immediately) |
DELETE | /scim/v2/Users/{id} | Deactivate user (users are never hard-deleted) |
PUT | /v1/directories/{tenantId}/partner | Mark a tenant as a partner home tenant (platform operator with MFA) |
GET | /v1/federation | The caller's tenant federation (TenantRead) |
PUT | /v1/federation | Set the caller's tenant federation (TenantManage) |
GET | /v1/jit/grants | List JIT grants for the operator console (platform operator with MFA, non-JIT session) |
POST | /v1/jit/grants | Request JIT access to a customer tenant (platform operator with MFA) |
POST | /v1/jit/grants/{id}/approve | Approve a pending grant (a different platform operator, within 1 hour) |
POST | /v1/jit/grants/{id}/token | Exchange an approved grant for a tenant-scoped token (requester only, before expiry) |
GET | /v1/role-mappings | Group-to-role mappings (UsersManage) |
PUT | /v1/role-mappings | Replace group-to-role mappings (UsersManage) |
POST | /v1/scim-token | Issue (rotate) the tenant SCIM bearer token (UsersManage). Shown once; previous token stops working. |
GET | /v1/service-grants | Services this tenant has allowed to act inside it (tenant admin) |
PUT | /v1/service-grants/{clientId} | Allow a registered service to obtain tenant-scoped tokens (for example scheduled reports) |
DELETE | /v1/service-grants/{clientId} | Revoke a service grant |
GET | /v1/service-grants/catalog | Every service that can act for this tenant, what it may do there, and this tenant's consent (tenant admin) |
POST | /v1/token | Exchange a customer IdP id_token for a Dexwize access token; or, for services (ADR-0023), obtain a service token with client_credentials (private_key_jwt or federated workload token as client_assertion) or exchange a platform service token addressed to identity-service for a tenant-scoped token. |
GET | /v1/users | The organisation's people with their roles, who manages them and how they sign in (UsersManage) |
POST | /v1/users | Add a person to the organisation's directory (UsersManage; not from a JIT session) |
POST | /v1/users/{id}/deactivate | Deactivate a person; their managed sign-in account is disabled and its sessions end (UsersManage) |
POST | /v1/users/{id}/reactivate | Reactivate a person and enable their managed sign-in account (UsersManage) |
POST | /v1/users/{id}/reset-sign-in | Issue a new temporary password and authenticator for a managed sign-in account, returned once (UsersManage) |
PUT | /v1/users/{id}/roles | Replace a portal-managed person's directly assigned roles (UsersManage; not from a JIT session) |
GET | /v1/users/assignable-roles | Role keys this organisation may grant and its administrator role (UsersManage) |
GET /.well-known/jwks.json
Public signing keys (EC P-256, ES256)
| Status | Description | Body |
|---|
| 200 | JSON Web Key Set | object |
GET /.well-known/openid-configuration
OpenID discovery document
| Status | Description | Body |
|---|
| 200 | Discovery document (issuer, jwks_uri, token_endpoint) | object |
GET /scim/v2/Groups
List groups (filter displayName eq / externalId eq)
| Parameter | In | Type | Required | Description |
|---|
filter | query | string | no | |
startIndex | query | integer | no | |
count | query | integer | no | |
| Status | Description | Body |
|---|
| 200 | SCIM ListResponse | |
| 400 | SCIM error | |
POST /scim/v2/Groups
Create group (members must be users of the same tenant)
| Status | Description | Body |
|---|
| 201 | SCIM resource | |
| 400 | SCIM error | |
| 409 | SCIM error | |
GET /scim/v2/Groups/{id}
Get group
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | SCIM resource | |
| 404 | SCIM error | |
PUT /scim/v2/Groups/{id}
Replace group
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | SCIM resource | |
| 404 | SCIM error | |
PATCH /scim/v2/Groups/{id}
Patch group (add/remove/replace members, displayName)
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | SCIM resource | |
| 400 | SCIM error | |
| 404 | SCIM error | |
DELETE /scim/v2/Groups/{id}
Delete group
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 204 | Deleted | |
| 404 | SCIM error | |
GET /scim/v2/ServiceProviderConfig
SCIM service provider configuration
| Status | Description | Body |
|---|
| 200 | OK | |
GET /scim/v2/Users
List users (filter userName eq / externalId eq; startIndex, count up to 200)
| Parameter | In | Type | Required | Description |
|---|
filter | query | string | no | |
startIndex | query | integer | no | |
count | query | integer | no | |
| Status | Description | Body |
|---|
| 200 | SCIM ListResponse | |
| 400 | SCIM error | |
| 401 | SCIM error | |
POST /scim/v2/Users
Create user
| Status | Description | Body |
|---|
| 201 | SCIM resource | |
| 400 | SCIM error | |
| 409 | SCIM error | |
GET /scim/v2/Users/{id}
Get user
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | SCIM resource | |
| 404 | SCIM error | |
PUT /scim/v2/Users/{id}
Replace user
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | SCIM resource | |
| 400 | SCIM error | |
| 404 | SCIM error | |
PATCH /scim/v2/Users/{id}
Patch user (PatchOp; active=false deactivates immediately)
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | SCIM resource | |
| 400 | SCIM error | |
| 404 | SCIM error | |
DELETE /scim/v2/Users/{id}
Deactivate user (users are never hard-deleted)
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 204 | Deactivated | |
| 404 | SCIM error | |
PUT /v1/directories/{tenantId}/partner
Mark a tenant as a partner home tenant (platform operator with MFA)
| Parameter | In | Type | Required | Description |
|---|
tenantId | path | string | yes | |
Request body: object (JSON).
| Status | Description | Body |
|---|
| 200 | Saved | object |
| 400 | Platform tenant or empty id | |
| 403 | Not a platform operator with MFA | |
GET /v1/federation
The caller's tenant federation (TenantRead)
| Status | Description | Body |
|---|
| 200 | OK | Federation |
| 404 | Not configured | |
PUT /v1/federation
Set the caller's tenant federation (TenantManage)
Request body: object (JSON).
| Status | Description | Body |
|---|
| 200 | Saved | Federation |
| 400 | Validation failed | |
| 403 | Missing permission | |
GET /v1/jit/grants
List JIT grants for the operator console (platform operator with MFA, non-JIT session)
| Parameter | In | Type | Required | Description |
|---|
state | query | string | no | |
tenantId | query | string | no | |
days | query | integer | no | Requested within the last N days |
| Status | Description | Body |
|---|
| 200 | OK | JitGrant[] |
| 400 | Unknown state | |
| 403 | Not a platform operator session | |
POST /v1/jit/grants
Request JIT access to a customer tenant (platform operator with MFA)
Request body: object (JSON).
| Status | Description | Body |
|---|
| 201 | Pending grant | JitGrant |
| 400 | Validation failed | |
| 403 | Not a platform operator with MFA | |
POST /v1/jit/grants/{id}/approve
Approve a pending grant (a different platform operator, within 1 hour)
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | Approved | JitGrant |
| 403 | Not a platform operator with MFA | |
| 404 | Unknown grant | |
| 409 | Self-approval, not pending, or request expired | |
POST /v1/jit/grants/{id}/token
Exchange an approved grant for a tenant-scoped token (requester only, before expiry)
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | Token with tid=target tenant, role platform_operator and jit_grant claim | TokenResponse |
| 403 | Not approved, expired, or not the requester | |
| 404 | Unknown grant | |
GET /v1/role-mappings
Group-to-role mappings (UsersManage)
| Status | Description | Body |
|---|
| 200 | OK | RoleMappings |
PUT /v1/role-mappings
Replace group-to-role mappings (UsersManage)
Request body: RoleMappings (JSON).
| Status | Description | Body |
|---|
| 200 | Saved | RoleMappings |
| 400 | Invalid mapping or role not assignable in this tenant | |
POST /v1/scim-token
Issue (rotate) the tenant SCIM bearer token (UsersManage). Shown once; previous token stops working.
| Status | Description | Body |
|---|
| 200 | New token | object |
GET /v1/service-grants
Services this tenant has allowed to act inside it (tenant admin)
| Status | Description | Body |
|---|
| 200 | OK | ServiceGrant[] |
PUT /v1/service-grants/{clientId}
Allow a registered service to obtain tenant-scoped tokens (for example scheduled reports)
| Parameter | In | Type | Required | Description |
|---|
clientId | path | string | yes | |
Request body: object (JSON).
| Status | Description | Body |
|---|
| 200 | Granted | ServiceGrant |
| 400 | expiresAt in the past | |
| 404 | Unknown service, or a service that never acts for tenants | |
DELETE /v1/service-grants/{clientId}
Revoke a service grant
| Parameter | In | Type | Required | Description |
|---|
clientId | path | string | yes | |
| Status | Description | Body |
|---|
| 204 | Revoked | |
| 404 | No active grant | |
GET /v1/service-grants/catalog
Every service that can act for this tenant, what it may do there, and this tenant's consent (tenant admin)
| Status | Description | Body |
|---|
| 200 | OK | ServiceConsent[] |
POST /v1/token
Exchange a customer IdP id_token for a Dexwize access token; or, for services (ADR-0023), obtain a service token with client_credentials (private_key_jwt or federated workload token as client_assertion) or exchange a platform service token addressed to identity-service for a tenant-scoped token.
| Status | Description | Body |
|---|
| 200 | Issued token | TokenResponse |
| 400 | invalid_request, unsupported_grant_type or invalid_grant. Only error_description=mfa_required is ever returned; other failures carry no detail. | object |
| 401 | invalid_client (service assertion missing, invalid, expired or replayed) | object |
| 429 | Rate limited; see Retry-After | |
GET /v1/users
The organisation's people with their roles, who manages them and how they sign in (UsersManage)
Always the caller's own tenant. managedBy "directory" means SCIM provisions the person and their roles are read-only in the portal. signIn "managed" means the tenant signs in through the identity provider Dexwize operates.
| Status | Description | Body |
|---|
| 200 | OK | PortalUserList |
| 403 | Missing permission | |
POST /v1/users
Add a person to the organisation's directory (UsersManage; not from a JIT session)
In a managed sign-in tenant this also creates the person's sign-in account with a temporary password and a pre-enrolled authenticator, returned once in credentials and never stored by identity-service. An account that already exists for the email is linked (existingSignIn true) and keeps its credentials.
Request body: CreateUserRequest (JSON).
| Status | Description | Body |
|---|
| 201 | Created | PortalUserResult |
| 400 | Invalid email or display name, or a role not assignable in this organisation | |
| 403 | Missing permission or a JIT session (title jit_session) | |
| 409 | email_in_use, user_inactive (reactivate instead; userId is set) or directory_required | |
| 502 | The managed identity provider could not be reached (title sign_in_unavailable); nothing was created | |
POST /v1/users/{id}/deactivate
Deactivate a person; their managed sign-in account is disabled and its sessions end (UsersManage)
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | Deactivated (idempotent) | PortalUserResult |
| 404 | No such user in this organisation | |
| 409 | self_change or last_admin | |
POST /v1/users/{id}/reactivate
Reactivate a person and enable their managed sign-in account (UsersManage)
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | Active (idempotent) | PortalUserResult |
| 404 | No such user in this organisation | |
POST /v1/users/{id}/reset-sign-in
Issue a new temporary password and authenticator for a managed sign-in account, returned once (UsersManage)
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | New one-time credentials | PortalUserResult |
| 404 | No such user in this organisation | |
| 409 | not_managed_sign_in, sign_in_not_owned, user_inactive, self_change or sign_in_shared | |
| 502 | The managed identity provider could not be reached (title sign_in_unavailable) | |
PUT /v1/users/{id}/roles
Replace a portal-managed person's directly assigned roles (UsersManage; not from a JIT session)
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
Request body: object (JSON).
| Status | Description | Body |
|---|
| 200 | Saved | PortalUserResult |
| 400 | No role or a role not assignable in this organisation | |
| 404 | No such user in this organisation | |
| 409 | directory_managed, self_change (your own administrator role) or last_admin | |
GET /v1/users/assignable-roles
Role keys this organisation may grant and its administrator role (UsersManage)
| Status | Description | Body |
|---|
| 200 | OK | object |