Skip to content
Fermium

Send customer identity events

Push signed account, session, and group changes to one Fermium visitor directory.

A visitor directory can receive signed events from its configured OpenID Connect or signed handoff source. A provider can close a customer’s sessions or update access through a mapped group as soon as the change happens. Each receiver belongs to one directory and one provider. Customers keep their original record ownership.

Connect a feed

  1. In Settings → Visitor directories, open the directory. In Identity sources, enable the provider, enter its HTTPS issuer, and register its Ed25519 public signing key. The provider keeps its private key. Directory events follow the same key rotation and retirement dates as signed provider assertions.
  2. Under Visitor groups, map the provider values your business uses to Fermium groups. Use the exact provider issuer for OpenID Connect. For signed handoff, use the issuer prefixed with handoff:.
  3. Open Provider events and select the source. If your transmitter sends verification events, enter its stream ID. Click Enable event feed and copy Receiver address and audience into the transmitter’s push configuration. Use that exact address for delivery and for the signed audience.
  4. Send a signed verification event from the transmitter using its registered stream ID and omitting state. Click Refresh events to see the provider time, receipt time, and delivery lag. A manager can view the latest ten deliveries from the last 30 days. OpenID Shared Signals Framework

Team includes visitor directories. Directories local to a guest space require Business. A change to the trusted issuer pauses delivery until a workspace administrator reconnects it. Pausing delivery preserves previously applied account and group decisions. The four-hour external sign-in limit continues to apply.

Send one signed event

Send a compact JWS in an HTTPS POST with Content-Type: application/secevent+jwt. Sign with Ed25519 and use the protected header alg: EdDSA, typ: secevent+jwt and the configured kid. This manually configured receiver implements push delivery. Register the destination at the transmitter. OpenID Shared Signals Framework and RFC 8935 push delivery.

Include a unique jti, the configured HTTPS iss, the receiver URL as aud, the issue time as iat, and one entry in events. A single-element audience array also works. For customer events, sub_id must use the iss_sub format with the same issuer and the provider’s durable account subject. Use the external subject that the customer proves at sign-in. The verification event uses an opaque stream identifier. SSF prohibits top-level sub and exp. The receiver accepts compact tokens up to 16 KiB.

Event URI Effect
https://schemas.openid.net/secevent/risc/event-type/account-disabled Disables this provider identity. An existing customer’s active sessions stop working on their next protected request.
https://schemas.openid.net/secevent/risc/event-type/account-enabled A newer event re-enables this source. The directory’s local block and other disabled linked identities still apply. A fresh sign-in is required.
https://schemas.openid.net/secevent/caep/event-type/session-revoked Ends this subject’s provider sessions established from proofs issued at or before the event time. The customer can sign in again with a newer proof.
https://fermium.app/events/visitor/group-membership-snapshot Replaces the locally mapped memberships from this provider for this subject. Send the full group list. An empty array removes all such memberships. Manually managed groups and groups from another source are preserved.
https://schemas.openid.net/secevent/ssf/event-type/verification Records a verified delivery for the configured stream and leaves customer access unchanged.

The account events are defined by OpenID RISC. The session event follows OpenID Continuous Access Evaluation. Fermium defines the full-membership snapshot for a customer’s durable subject. CAEP’s token claims change event describes claims on an issued token.

Group snapshot example

{
  "iss": "https://identity.tern.example",
  "aud": "https://fermium.app/api/visitor-directories/DIRECTORY_ID/event-feeds/handoff/push",
  "iat": 1796210408,
  "toe": 1796210400,
  "jti": "tern-groups-00042",
  "sub_id": {"format": "iss_sub", "iss": "https://identity.tern.example", "sub": "customer-42"},
  "events": {
    "https://fermium.app/events/visitor/group-membership-snapshot": {
      "groups": ["returns-reviewers", "wholesale-buyers"]
    }
  }
}

Supply the provider’s source time in toe, or in an event’s event_timestamp. When both are supplied, they must agree. The receiver uses iat when the change time is absent. Times are Unix seconds and may include fractions. Send up to 256 group values, each at most 255 characters. The receiver keeps only identifiers of groups already mapped in that directory. After the first snapshot, later snapshots control these memberships, including on subsequent logins. Send another snapshot after changing the mappings.

An accepted SET returns HTTP 202 with an empty body. Retrying the same SET returns 202 and increments its repeat-delivery count. Reusing an event ID with different claims returns 400. Invalid delivery returns an RFC 8935 error such as invalid_audience or invalid_key. The receiver accepts older deliveries and uses source time to decide which changes still apply. At equal source times, disabling wins for account state. Conflicting group snapshots retain the intersection. A later snapshot can grant membership again.

An event for an as-yet unknown subject records the decision until that issuer and subject complete their normal admission. Sending an event cannot create a customer, invite a person, or issue a session. Event receipts contain the kind, outcome, timestamps, and retry count. Receipts older than 30 days drop out of history and are pruned as new events arrive. Authoritative per-subject state outlives receipt history.