Glossary
ulex terminology: every protocol, protocol-adjacent, and ulex-specific term defined, with the RFC or spec it comes from where there is one.
#Protocols and specifications
OIDC — OpenID Connect, an identity layer on top of OAuth 2.0. Adds an ID token, a UserInfo endpoint, and standard claims so a client can learn who the user is, not just what they may do. Spec
OAuth 2.1 — the consolidation of OAuth 2.0's best practices. Removes the implicit grant and the password grant; requires PKCE. ulex implements 2026-09 of the draft. Spec
PKCE — Proof Key for Code Exchange, RFC 7636. A code_verifier/code_challenge pair that binds an authorization code to the client that requested it, so a stolen code is useless without the verifier. ulex requires S256.
SAML 2.0 — an XML-based federation protocol. ulex is both an IdP and an SP. Spec
SCIM 2.0 — System for Cross-domain Identity Management, RFC 7643 and 7644. A REST protocol for provisioning users and groups from a directory into an application, so the HR system is the source of truth.
JWKS — JSON Web Key Set. The public half of every signing key, served so verifiers can check a signature. RFC 7517
JWT — JSON Web Token, RFC 7519. A base64url header, a base64url payload, and a signature. Signed, not encrypted: anyone holding one can read the payload.
ULID — a 26-character, lexicographically sortable identifier. ulex ids are prefix_ + ULID, so org_01M3PSV… sorts by creation time. Spec
JWKS kid — the key id. A JWT names the key that signed it, so a verifier can look it up rather than trying every key. A verifier that pins one kid breaks on rotation.
DPoP — Demonstrating Proof of Possession, RFC 9449. Binds a token to a client key so a stolen token is useless without the private key. Supported as dpop_jkt on grants; not enforced by default.
FAPI 2.0 — a high-assurance OAuth profile enforced for tenants and connections configured for FAPI 2.0.
SP — Service Provider, in SAML. The application that wants the user authenticated. ulex is an SP to a customer's IdP.
IdP — Identity Provider. The system that authenticates a user and asserts an identity. Okta, Entra, or ulex.
ACS — Assertion Consumer Service, in SAML. The endpoint an IdP POSTs an assertion to. In SP-initiated flow it is yours; in IdP-initiated flow it is ulex's /connections/{id}/saml/acs.
SP-initiated — login that starts at the service provider. ulex builds an AuthnRequest and redirects to the IdP.
IdP-initiated — login that starts at the IdP, with no prior AuthnRequest. ulex accepts it on /saml/sso.
JIT — Just-In-Time provisioning. A user who has never been provisioned is created at login from the upstream claims. On OIDC, the legacy require_jit_provisioning: true disables creation; on SAML, allow_create controls it.
JIT provisioning vs SCIM — JIT creates a user the first time they log in and does nothing until then. SCIM creates them when the directory says so, whether or not they ever log in. Most customers want both, with SCIM first and JIT off.
#ulex concepts
Tenant — the top-level boundary. One customer of ulex, owning applications, organizations, users, and keys. ten_….
Environment — a deployment target (prod on https://ulexid.com, or a local in-memory server during offline testing).
Organization — a customer of your application. The unit a B2B signup produces. org_….
Domain — a verified email domain on an organization, proved with a TXT record. dom_…
Membership — the link between a tenant-global user and an organization, with a role. mem_…
Connection — one identity source for one organization: how its humans prove who they are. con_…
Strategy — connection.config.strategy. The discriminator that decides which config namespace is valid. mock_sso, password, magic_link, otp_email, oidc, google_oidc, microsoft_oidc, entra_oidc, okta_oidc, github_oidc, apple_oidc, generic_oauth2, saml, scim, directory_sync, jwt_bearer, x509_client_cert, impersonation_only.
mock_sso — the built-in simulated enterprise IdP. The agent-friendly default: it produces real sessions, real grants, real RS256 JWTs, and real audit events, with no external setup. It does not authenticate a real human.
Directory — an upstream source of users and groups. ulex either polls it (directory_sync) or exposes an endpoint for it to push into (inbound SCIM). dir_…
Application — an OAuth client. app_…
Session — a browser cookie-backed login, per (user, tenant). Cross-app SSO reuses it silently. ses_…
Grant — an authorization-code transaction. Single use, 60 seconds, PKCE-bound. grt_…
Refresh-token family — every refresh token descended from one original login. Replaying a rotated token revokes the whole family. That is how token theft is detected. tok_… is one member.
Directory sync — a poll of an upstream directory. A job, not a request: the trigger returns immediately and you poll for the result.
Deployment — the modelled delivery lifecycle. Ten states, step logs, issued credentials, rollback. ulex does not run your code.
Audit event — one immutable, hash-chained record of one action. aud_…
Chain — the entry_hash / previous_hash / sequence triple that makes the audit log tamper-evident.
actor_type — user, api_key, system, service, or agent. An agent's actions are distinguishable from a human's, which is what makes auditing an agent a query rather than an archaeology project.
Simulator — the honest word for what ulex is. It models an identity backend faithfully and executes a real protocol against it. It does not authenticate real humans, deliver email, or run your code during a deployment.
Hosted UI — ulex's rendered sign-in page at /auth/{appId}. For humans. An agent should use ulex_simulate_login.
#Scopes
Scope — a permission on a credential. 27 values. The check happens before the handler, so a wrong scope is a 403 with the missing one named, not a mysterious 500.
Admin-only scope — ulex:admin, mcp:admin, sso:impersonate. Rejected at mint time for a non-admin key, so you cannot accidentally mint one you are not entitled to.
mcp:tools — every read-only MCP tool. Most agent workloads need this and nothing else.
mcp:admin — destructive MCP tools: ulex_reset_tenant, ulex_delete_*, ulex_rotate_*. Separate from mcp:tools deliberately.
scim:provision — inbound SCIM writes, and reading a SCIM bearer token. A customer IdP's credential.
saml:consume — posting to the ACS and SLO. Held by ulex's own SAML client.
#Claims
sub — the subject: the ulex usr_… id. Stable across email and name changes. The join key for your local user table.
iss — the issuer: https://ulexid.com (or http://127.0.0.1:3001 in local in-memory mode). No trailing slash. Compared exactly.
aud — the audience: the client_id the token was issued to. An array after a token exchange.
azp — the authorized party. Check it whenever aud has more than one entry.
exp / iat / nbf — expiry, issued-at, not-before. Seconds since epoch.
jti — a unique id per token. Use it as an idempotency key and in logs.
org_id — the organization the authorization named. This, not the session, is what you authorize on.
sid — the ulex session. Not your application session. Use it to correlate with audit events and to revoke everything in one session.
amr — authentication methods reference. How the user authenticated: pwd, otp, webauthn, saml, mfa. A history.
acr — authentication context class reference. How strong it was: urn:ulex:acr:mfa, urn:ulex:acr:phishing-resistant. A verdict. Branch on this, not on amr.
acr_values — a request parameter demanding a minimum acr. If the session does not meet it, the response is 401 step_up_required.
Namespaced claims — https://ulexid.com/claims, an object holding custom claims. Namespaced so it cannot collide with a registered claim.
#Signing and encryption
Signing key — a private/public pair that signs tokens, assertions, and requests. key_…. One per purpose, with a kid.
kid — the key id, published in the JWKS. A verifier looks the key up by kid rather than trying all of them.
CMK — the customer master key in AWS KMS. alias/ulex-tenant. Never leaves KMS.
Data key — a 4 KiB key generated per request by the CMK, used to encrypt one secret, and discarded. Cached in the Lambda environment for at most 60 seconds.
Envelope encryption — encrypting data with a data key, and encrypting the data key with the CMK. Means the bulk data is encrypted without ever asking KMS about it twice.
env:VAR_NAME — the form ulex accepts for any secret-shaped field, so the literal never crosses the wire. ulex reads the variable from its own environment and stores only the ciphertext.
Rotation grace — the window during which both an old and a new key are valid. The mechanism that makes rotation a non-event. Set it to at least twice your longest consumer cache.
Retiring — a signing key inside its grace window. Still in the JWKS, still verifying, no longer signing.
#Operations
Idempotency key — a header that deduplicates a write for 24 hours. A replay returns the original response byte for byte; a different body with the same key is 409.
retryable — a boolean on every error. The only backoff signal. false means the request is wrong and retrying cannot help.
Cursor — an opaque pagination token. Pass it back verbatim. Never decode it, never construct one.
has_more — the only field to branch on when paginating. When it is false, you are done.
limit — page size, 1–200, default 20.
Correlation id — a label you set with X-Ulex-Correlation-Id, stored on every audit event a job touches. Groups a multi-call operation into one story.
Request id — X-Ulex-Request-Id. One per call, echoed, and stored on the audit event. Quote it in a bug report.
allow_mocks — a tenant flag that enables the simulator endpoints for that tenant (true by default in the local in-memory server; off by default on https://ulexid.com and forbidden when hipaa_enabled: true). Audited. Leave it off unless you are running authorized synthetic tests on a non-HIPAA tenant.
ulex:admin — the scope that can do everything, including key rotation and impersonation. Always treat it as a high-privilege credential.
#Compliance
SOC 2 Type II — an AICPA attestation that a control system operated effectively over a period. Testing, not just a policy. [Security, Availability, Confidentiality.]
BAA — Business Associate Agreement. The HIPAA contract that makes ulex a business associate for PHI it processes on your instructions. Available on business and enterprise plans on https://ulexid.com.
PHI — Protected Health Information. Individually identifiable health information. Note that an email address and an IP address are both on the 18-identifier list, whether or not they look health-related.
PHI minimisation — ulex's design position: hold only what authentication requires, and pseudonymise the rest wherever it is written down.
Pseudonymisation — replacing an identifier with a salted, one-way hash that is still correlatable within a tenant. ulex uses it for IP addresses, actor emails, and MFA destinations.
Safe Harbour — the HIPAA de-identification method: remove all 18 identifiers. ulex's design is closer to this than to "encrypt everything and keep it".
Control — a specific thing you do, as opposed to a policy saying you do it. A control is testable; a policy is not.
Evidence — the artefact that proves a control operated. For ulex, most of it is a query you can run yourself against the audit log.
#Protocol terms that look alike
| Term | Means | Is not |
|---|---|---|
sso_only | confines an organization's members to authenticating via its enterprise SSO connections | single sign-on as a protocol |
| cross-app SSO | one session reused across applications silently | a SAML concept |
SSO in imr_ps | a SAML string constant naming the technique | anything in OAuth |
saml:consume | the scope for posting to the ACS | consuming a queue |
session | ulex's browser-cookie login | your application's session |
grant | an authorization-code transaction | a permission |
scope | a permission on a credential | an OIDC scope request parameter |
state | ulex's connection state (draft, active) | the OAuth state CSRF parameter |
domain | a verified email domain | the deployment target |
state is the one that bites. In GET /oauth2/authorize?state=… it is your CSRF token. On a connection object it is the lifecycle state. They are unrelated and appear in the same docs.