Capability status
What ulex enforces today, what its schemas declare but the server does not yet act on, and what it deliberately does not offer. Read this before treating any configurable field as a control.
#Capability status
Ulexid's configuration schemas declare the full control-plane contract; some declared fields are not yet enforced by the server. This page is the single place that says which is which.
For which capabilities exist, and how ulex compares to Entra External ID, Okta, Auth0, Clerk and Cognito, see Product scope and parity. This page is the per-field state; that page is the per-capability state.
Why this page exists. ulex's configuration schemas are the surface an integrator reads first, so a field declared there reads as a working control even when no code consults it. Rather than repeat a caveat on every page, each one that describes a declared-but-unenforced field links here, and the claims that are actually wrong — a mitigation table crediting a control ulex lacks, an error code listing a cause it cannot produce — are corrected in place.
#Three states
| State | Meaning | Trust it? |
|---|---|---|
| Enforced | The server reads it and changes behaviour. A test asserts that removing the check turns the suite red. | Yes |
| Declared | In the schema, settable, returned on every read. Nothing consults it yet. | No |
| Deliberately not offered | Removed or refused on purpose, with a written reason. | Read the reason |
"Declared" is the normal state of a field whose capability is still being built. It is not a defect report; it is a build-out state. But it is also not a control, and the difference matters when you are deciding what to depend on.
#Enforced today
| Capability | Enforced at | Notes |
|---|---|---|
OAuth 2.1 authorization code + PKCE S256, refresh rotation with family revocation on replay | token endpoint, authorize endpoint | plain and the implicit flow are refused |
redirect_uri exact-match comparison | authorize, token | loopback ports excepted per RFC 8252 |
User consent for third_party applications, and prompt=consent | /oauth2/authorize, /auth/{appId}, /oauth2/consent | a grant is a ceiling: a request for scopes beyond it is a new decision. prompt=none answers consent_required and issues nothing |
Tenant isolation on every repository, TENANT#<id># partition prefix | data layer | a cross-tenant id is indistinguishable from a nonexistent one: 404, never 403 |
Authorization codes single-use, 60-second TTL, enforced with a ConditionExpression | data layer | |
| Append-only hash-chained audit log with pseudonymised subjects | ulex_verify_audit_chain | |
| Webhook HMAC signature verification against the raw body, 5-minute skew | delivery | SSRF guard at registration and at delivery |
| TOTP and WebAuthn second factors; recovery codes, single-use | packages/auth/src/mfa.ts | a verified factor is required from any user who has one |
| Introspection (RFC 7662), authenticated | token endpoint | |
| SCIM 2.0 service provider: users, groups, Bulk, deactivation | /scim/v2/* | |
| Upstream OIDC federation, 8 strategies | /oauth2/connections/{id}/* | discovery, PKCE, id_token against the IdP's own JWKS, JIT provisioning |
| Upstream SAML federation, ulex as SP | /saml/connections/{id}/* | |
| Downstream SAML federation, ulex as IdP | /saml/idp/metadata, /saml/idp/sso, /saml/idp/slo, /saml/idp/init/{appId} | RSA XML-DSig signed assertions restricted to registered redirect_uris, Single Logout (slo), and opt-in IdP-initiated login (403 unless saml_allow_idp_initiated: true) |
| Connection verification against the upstream | POST /connections/{id}/verify | fetches and validates discovery; parses the SAML certificate to a usable key; probes sso_url |
Authentication policy: password composition/history/expiry, session lifetime/idle/re-auth/binding, MFA required enrollment & adaptive risk, cross-app SSO, blocked_ip_ranges | see Authorization | password.max_age_days and forbid_reuse_count are enforced alongside composition; mfa.mode: "required" enforces inline TOTP enrollment; mfa.mode: "adaptive" scores trigger_on_* and signed ulex_device cookies; blocked_ip_ranges applies to every authenticated request |
Per-application access & hosted UI settings (organization_usage, grant_access_to_organization, sign_in_with_email_enabled, sign_up_enabled, cross_app_sso_enabled, cross_app_sso_redirect_urls, branding, default_locale, ui_locales) | /oauth2/authorize, /auth/{appId}, hosted portal | organization_usage: "deny"/"require" with multi-org picker, email/signup toggles, cross-app redirect URI allowlisting, sanitized branding customization, and localized hosted login UI |
| RBAC roles and permissions | GET/POST /api/v1/roles, PUT /api/v1/organizations/{id}/members/{userId}/roles, PATCH /api/v1/groups/{id} | deduplicated active-role slugs (roles) and permission strings (permissions) emitted in tokens & userinfo, checked by @ulex/node (requiredRoles / requiredPermissions) |
Modern OAuth 2.1 / OIDC extensions: PAR, private_key_jwt, jwt-bearer, device flow, token exchange, front-channel logout, step-up | /oauth2/par, /oauth2/token, /oauth2/device/authorize, /oauth2/logout | single-use client-bound PAR (require_pushed_authorization_requests), secretless private_key_jwt (inline jwks/SSRF-checked jwks_uri + atomic jti), RFC 7523 jwt-bearer, front-channel logout iframes, and acr_values/max_age step-up |
| Sender-constrained tokens (DPoP & mTLS), X.509 PKI connections, and pairwise subjects | /oauth2/par, /oauth2/token, /oauth2/userinfo, /connections/{id}/x509/authenticate | dpop_bound_access_tokens (RFC 9449 cnf.jkt, ath, atomic jti), tls_client_auth / self_signed_tls_client_auth + tls_client_certificate_bound_access_tokens (RFC 8705 cnf["x5t#S256"]), CA-verified x509_client_cert auth, and OIDC Core §8.1 subject_type / sector_identifier_uri |
organization.sso_only | session creation | refuses direct password/social login; confines to permitted enterprise connections with most-restrictive rule across memberships |
organization.allow_profiles_outside_organization | user creation/joining (JIT, SCIM, invites, members) | when false (default), email domain must match a verified organization domain |
| Organization domain lifecycle over REST and MCP | POST /organizations/{id}/domains, POST .../domains/{domainId}/verify, DELETE .../domains/{domainId}; ulex_add_domain, ulex_verify_domain, ulex_list_domains, ulex_remove_domain | the challenge secret is returned once at creation; removing the last verified domain of an sso_only org is 409 sso_domain_required |
| Outbound SCIM 2.0 client & directory sync polling | POST /api/v1/directories/{id}/sync, PATCH /api/v1/directories/{id}, POST /api/v1/connections/{id}/sync, ulex_sync_directory, directorySyncHandler | pulls and pushes /Users and /Groups with attribute mapping, org domain enforcement, upstream deprovisioning with session revocation, dry_run, and SSRF checks on registration, update, and every request |
tenant.retention (audit_log_days, webhook_delivery_days, session_days, application_inactive_days) | PATCH /api/v1/tenants/current, POST /api/v1/tenants/current/retention/sweep, ulex_run_retention_sweep, AuthService.createSession, retentionSweepHandler | session_days clamps new session TTLs; hipaa_enabled requires audit_log_days >= 2555 (7 years); sweeper purges expired sessions, webhook deliveries, inactive applications (soft-delete), and old audit events while keeping the hash chain valid |
| Nightly S3 Object Lock audit archive export | auditExportHandler | exports daily UTC audit events per tenant to ULEX_AUDIT_BUCKET (audit/env={env}/tenant={id}/dt={yyyy-mm-dd}/events.ndjson + manifest.json with ChecksumSHA256) under primary-region EventBridge schedules |
Self-service email change (pending_email) | POST /portal/me/email-change/request, /confirm, /cancel | step-up / password re-verification, uniqueness check (409), target-bound 6-digit code hash (email_change_code_hash stripped on every read and blocked on PATCH /users/:id), atomic email_tenant_index migration, and user.email_change* audit events |
Account linking (linked_identities) | /portal/me/identities*, GET/POST/DELETE /api/v1/users/{id}/identities*, ulex_*_user_identity, AuthService.provisionJit | OIDC & SAML portal linking flow + admin API + MCP; cross-user conflict check (409 identity_already_linked), 400 last_auth_method lockout guard, and DynamoDB LINKED_ID# key consistency |
Upstream attribute & external_id mapping rules | attribute_mapping_rules on OIDC/SAML/SCIM connections, POST /api/v1/connections/{id}/test-mapping, ulex_test_connection_mapping | ordered multi-source fallbacks, nested dot-paths & SCIM filter expressions, {claim} templates, trim|lowercase|uppercase|sha256 transforms, custom external_id, and metadata.* targets |
| Drop-in React/Next.js RBAC UI & Console parity screens | @ulex/react, @ulex/nextjs, apps/console (/roles, /api/proxy/*) | @ulex/react (<SignIn />, <UserButton />, <OrganizationSwitcher />, <Protect />, useAuth().has), @ulex/nextjs (requireUlexSession, routeRules middleware), and console RBAC, mapping tester, OAuth parity toggles, live SCIM sync, linked identities, and retention editor |
| Declarative IaC & Terraform/OpenTofu bridge | @ulex/cli (ulex plan, ulex apply, ulex export, ulex terraform) | reconciles tenant retention/flags, roles, resource servers, organizations, applications, connections (with organization_slug resolution & activation), and webhooks over /api/v1/*; redacts secrets in plan diffs and generates terraform_data HCL |
#Declared, not enforced yet
Settable through the API and returned on every read, but no server worker acts on it yet. All previously declared schema fields (including tenant.retention) are now enforced above; none remain in this table.
| Field | Set where | State | Wave |
|---|
Pricing is usage-based. Tenant resource counts are informational and are not plan limits. Request rate limiting is separate and keyed by client IP.
#Deliberately not offered
Removed or refused on purpose. The reason matters more than the absence.
| Not offered | Why |
|---|---|
Unscoped SAML metadata path — /saml/metadata | Refuses (404) rather than guess between IdP and SP descriptors. Tenant SAML IdP metadata is served at GET /saml/idp/metadata, and per-connection SP metadata is served at GET /saml/connections/{id}/sp/metadata. |
SAML SP metadata document — /saml/sp/metadata | Refuses, and this is not a broken SP. ulex federates as a service provider over HTTP today (/saml/connections/{id}/sso and /acs). A tenant-level descriptor cannot describe it, because the ACS is per-connection: a tenant with two SAML connections has two ACS endpoints and one EntityDescriptor can name only one, so a document here would be right for exactly one connection and silently wrong for the rest. The per-connection document an IdP console imports is GET /saml/connections/{id}/sp/metadata, which is built and served. |
auth_policy.allowed_countries | Removed from the schema. Its only data source is CloudFront-Viewer-Country, and the distribution sets no origin request policy that overwrites a viewer-supplied one. An allowlist on it looks enforced, passes an audit, and is defeated by one request header — worse than an absent control, because the failure is invisible. Restoring it needs an origin request policy that sets the header explicitly, plus a test asserting the distribution has one. |
Signed userinfo (RS256), fragment response mode | Omitted from discovery because /oauth2/userinfo serves JSON (alg: ["none"]) and OIDC Core does not permit fragment for response_type=code. |
| Simulator affordances | Off by default on the hosted control plane unless a non-HIPAA tenant sets allow_mocks: true — a per-tenant flag, disabled automatically when hipaa_enabled is true. Enabled by default in the local in-memory server (http://127.0.0.1:3001). |
hipaa_enabled without a BAA reference | Rejected. ulex is a service provider, not a covered entity. |
| Admin console endpoints (Resolved) | Formerly 12 of 21 endpoints drifted or were missing. Resolved: a client-to-router contract test checks effective /api/v1 and issuer-root paths; OIDC uses the issuer-wide discovery/JWKS documents; SCIM users are queried through the directory filter; secrets are never revealed. 404s and other client errors are surfaced, and request-local 5xx/timeout fallbacks are reported by health. |
#Blocked, not started
Held for work outside this repository.
| Item | Blocked on |
|---|---|
Email transport (delivery), magic_link / otp_email strategies, invite delivery | Production sender credentials on the managed transactional email transport. Until production sender credentials are enabled on https://ulexid.com, tenant.allow_signup stays gated unless allow_mocks: true, because the hosted control plane does not return verification codes inline and cannot deliver codes callers need to confirm. |
| Self-serve signup | POST /bootstrap's secret is unrecoverable and self-destructs after use, so the first admin key needs AWS access. See F5. |
#Staying honest
| Claim type | Enforced by |
|---|---|
| a documented field is enforced | a test that fails when the check is removed, in the same commit |
| the OpenAPI describes the API that exists | services/api/src/openapi-drift.test.ts |
| a page describing a declared field says so | services/api/src/documentation-honesty.test.ts |
| the changelog distinguishes shipped from declared | reviewed per release; the Unreleased section separates "Added", "Corrected", "Removed", and "Not enforced" |
services/api/src/documentation-honesty.test.ts fails the build if a page describing a field in the table above stops saying it is unenforced. When a capability ships, the field moves out of that table and out of the test's INERT list — that list is the completion checklist.