Skip to main content

Dexwize Identity Service

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​

MethodPathSummary
GET/.well-known/jwks.jsonPublic signing keys (EC P-256, ES256)
GET/.well-known/openid-configurationOpenID discovery document
GET/scim/v2/GroupsList groups (filter displayName eq / externalId eq)
POST/scim/v2/GroupsCreate 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/ServiceProviderConfigSCIM service provider configuration
GET/scim/v2/UsersList users (filter userName eq / externalId eq; startIndex, count up to 200)
POST/scim/v2/UsersCreate 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}/partnerMark a tenant as a partner home tenant (platform operator with MFA)
GET/v1/federationThe caller's tenant federation (TenantRead)
PUT/v1/federationSet the caller's tenant federation (TenantManage)
GET/v1/jit/grantsList JIT grants for the operator console (platform operator with MFA, non-JIT session)
POST/v1/jit/grantsRequest JIT access to a customer tenant (platform operator with MFA)
POST/v1/jit/grants/{id}/approveApprove a pending grant (a different platform operator, within 1 hour)
POST/v1/jit/grants/{id}/tokenExchange an approved grant for a tenant-scoped token (requester only, before expiry)
GET/v1/role-mappingsGroup-to-role mappings (UsersManage)
PUT/v1/role-mappingsReplace group-to-role mappings (UsersManage)
POST/v1/scim-tokenIssue (rotate) the tenant SCIM bearer token (UsersManage). Shown once; previous token stops working.
GET/v1/service-grantsServices 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/catalogEvery service that can act for this tenant, what it may do there, and this tenant's consent (tenant admin)
POST/v1/tokenExchange 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/usersThe organisation's people with their roles, who manages them and how they sign in (UsersManage)
POST/v1/usersAdd a person to the organisation's directory (UsersManage; not from a JIT session)
POST/v1/users/{id}/deactivateDeactivate a person; their managed sign-in account is disabled and its sessions end (UsersManage)
POST/v1/users/{id}/reactivateReactivate a person and enable their managed sign-in account (UsersManage)
POST/v1/users/{id}/reset-sign-inIssue a new temporary password and authenticator for a managed sign-in account, returned once (UsersManage)
PUT/v1/users/{id}/rolesReplace a portal-managed person's directly assigned roles (UsersManage; not from a JIT session)
GET/v1/users/assignable-rolesRole keys this organisation may grant and its administrator role (UsersManage)

GET /.well-known/jwks.json​

Public signing keys (EC P-256, ES256)

StatusDescriptionBody
200JSON Web Key Setobject

GET /.well-known/openid-configuration​

OpenID discovery document

StatusDescriptionBody
200Discovery document (issuer, jwks_uri, token_endpoint)object

GET /scim/v2/Groups​

List groups (filter displayName eq / externalId eq)

ParameterInTypeRequiredDescription
filterquerystringno
startIndexqueryintegerno
countqueryintegerno
StatusDescriptionBody
200SCIM ListResponse
400SCIM error

POST /scim/v2/Groups​

Create group (members must be users of the same tenant)

StatusDescriptionBody
201SCIM resource
400SCIM error
409SCIM error

GET /scim/v2/Groups/{id}​

Get group

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200SCIM resource
404SCIM error

PUT /scim/v2/Groups/{id}​

Replace group

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200SCIM resource
404SCIM error

PATCH /scim/v2/Groups/{id}​

Patch group (add/remove/replace members, displayName)

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200SCIM resource
400SCIM error
404SCIM error

DELETE /scim/v2/Groups/{id}​

Delete group

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
204Deleted
404SCIM error

GET /scim/v2/ServiceProviderConfig​

SCIM service provider configuration

StatusDescriptionBody
200OK

GET /scim/v2/Users​

List users (filter userName eq / externalId eq; startIndex, count up to 200)

ParameterInTypeRequiredDescription
filterquerystringno
startIndexqueryintegerno
countqueryintegerno
StatusDescriptionBody
200SCIM ListResponse
400SCIM error
401SCIM error

POST /scim/v2/Users​

Create user

StatusDescriptionBody
201SCIM resource
400SCIM error
409SCIM error

GET /scim/v2/Users/{id}​

Get user

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200SCIM resource
404SCIM error

PUT /scim/v2/Users/{id}​

Replace user

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200SCIM resource
400SCIM error
404SCIM error

PATCH /scim/v2/Users/{id}​

Patch user (PatchOp; active=false deactivates immediately)

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200SCIM resource
400SCIM error
404SCIM error

DELETE /scim/v2/Users/{id}​

Deactivate user (users are never hard-deleted)

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
204Deactivated
404SCIM error

PUT /v1/directories/{tenantId}/partner​

Mark a tenant as a partner home tenant (platform operator with MFA)

ParameterInTypeRequiredDescription
tenantIdpathstringyes

Request body: object (JSON).

StatusDescriptionBody
200Savedobject
400Platform tenant or empty id
403Not a platform operator with MFA

GET /v1/federation​

The caller's tenant federation (TenantRead)

StatusDescriptionBody
200OKFederation
404Not configured

PUT /v1/federation​

Set the caller's tenant federation (TenantManage)

Request body: object (JSON).

StatusDescriptionBody
200SavedFederation
400Validation failed
403Missing permission

GET /v1/jit/grants​

List JIT grants for the operator console (platform operator with MFA, non-JIT session)

ParameterInTypeRequiredDescription
statequerystringno
tenantIdquerystringno
daysqueryintegernoRequested within the last N days
StatusDescriptionBody
200OKJitGrant[]
400Unknown state
403Not a platform operator session

POST /v1/jit/grants​

Request JIT access to a customer tenant (platform operator with MFA)

Request body: object (JSON).

StatusDescriptionBody
201Pending grantJitGrant
400Validation failed
403Not a platform operator with MFA

POST /v1/jit/grants/{id}/approve​

Approve a pending grant (a different platform operator, within 1 hour)

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200ApprovedJitGrant
403Not a platform operator with MFA
404Unknown grant
409Self-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)

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200Token with tid=target tenant, role platform_operator and jit_grant claimTokenResponse
403Not approved, expired, or not the requester
404Unknown grant

GET /v1/role-mappings​

Group-to-role mappings (UsersManage)

StatusDescriptionBody
200OKRoleMappings

PUT /v1/role-mappings​

Replace group-to-role mappings (UsersManage)

Request body: RoleMappings (JSON).

StatusDescriptionBody
200SavedRoleMappings
400Invalid 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.

StatusDescriptionBody
200New tokenobject

GET /v1/service-grants​

Services this tenant has allowed to act inside it (tenant admin)

StatusDescriptionBody
200OKServiceGrant[]

PUT /v1/service-grants/{clientId}​

Allow a registered service to obtain tenant-scoped tokens (for example scheduled reports)

ParameterInTypeRequiredDescription
clientIdpathstringyes

Request body: object (JSON).

StatusDescriptionBody
200GrantedServiceGrant
400expiresAt in the past
404Unknown service, or a service that never acts for tenants

DELETE /v1/service-grants/{clientId}​

Revoke a service grant

ParameterInTypeRequiredDescription
clientIdpathstringyes
StatusDescriptionBody
204Revoked
404No 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)

StatusDescriptionBody
200OKServiceConsent[]

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.

StatusDescriptionBody
200Issued tokenTokenResponse
400invalid_request, unsupported_grant_type or invalid_grant. Only error_description=mfa_required is ever returned; other failures carry no detail.object
401invalid_client (service assertion missing, invalid, expired or replayed)object
429Rate 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.

StatusDescriptionBody
200OKPortalUserList
403Missing 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).

StatusDescriptionBody
201CreatedPortalUserResult
400Invalid email or display name, or a role not assignable in this organisation
403Missing permission or a JIT session (title jit_session)
409email_in_use, user_inactive (reactivate instead; userId is set) or directory_required
502The 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)

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200Deactivated (idempotent)PortalUserResult
404No such user in this organisation
409self_change or last_admin

POST /v1/users/{id}/reactivate​

Reactivate a person and enable their managed sign-in account (UsersManage)

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200Active (idempotent)PortalUserResult
404No 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)

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200New one-time credentialsPortalUserResult
404No such user in this organisation
409not_managed_sign_in, sign_in_not_owned, user_inactive, self_change or sign_in_shared
502The 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)

ParameterInTypeRequiredDescription
idpathstringyes

Request body: object (JSON).

StatusDescriptionBody
200SavedPortalUserResult
400No role or a role not assignable in this organisation
404No such user in this organisation
409directory_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)

StatusDescriptionBody
200OKobject