Beta

Create a tenant

A new tenant starts with its own users, OAuth settings, audit history and logs. You are its first Tenant Admin.

Continuous access evaluation

A sign-in that was right this morning can be wrong by lunchtime, when a laptop is stolen or a role is removed. Continuous access evaluation sends that change to every service as a signed security event, and each service still has to act on it.

A good sign-in can become stale authority

All names, domains, and identifiers in these examples are fictional. Lena's contract with the Gazette ends at 18:00 on the last day of the Riverside festival. At 18:00 the staff directory disables her account, user-2290, and the Gazette's authorization server stops issuing her tokens. That much happens on time. But at 17:40 Lena opened the Gazette's page layout service, which another company runs at layout.example.test, through the Gazette's single sign-on, and the layout service gave her a session of its own that lasts for a working day.

Nothing about Lena's 17:40 sign-in was wrong. Her account was active, her password was right, and the layout service checked everything it should. The problem is that the sign-in is a fact about 17:40, and the layout service keeps acting on it at 18:30. Every system that relies on an earlier decision holds a copy of that decision, and each copy goes stale in its own way:

  • The authorization server's session and refresh tokens end when the account is disabled, because the server checks them itself on every use.
  • An access token validated locally keeps working until it expires, as Token revocation explained. Short lifetimes keep that gap small.
  • The layout service's own session lasts until it expires, and no token lifetime shortens it. The layout service learns about the change only if Lena signs in again or someone tells it.

Continuous access evaluation is the practice of revisiting access while it is still in use, instead of trusting each decision until it expires. Part of it is local: checking current authorization on each request and keeping evidence short-lived, as the earlier lessons in this group did. The part this lesson covers is the conversation between systems, where the one that notices a change tells the ones that still hold the old decision. For sign-out alone, OpenID Connect already has Back-channel logout. The OpenID Shared Signals Framework (SSF) generalizes it: a transmitter, here the Gazette's identity provider, sends events about many kinds of change to receivers, here the layout service, over a stream they set up in advance.

A change, written as a security event token

Each event travels as a Security Event Token (SET), a signed JWT defined in RFC 8417. When Lena's account is disabled, the Gazette's identity provider ends her sessions and sends the layout service this event, shown decoded:

Header
{
  "alg": "ES256",
  "kid": "gazette-events-2026-06",
  "typ": "secevent+jwt"
}

Payload
{
  "iss": "https://auth.photos.example",
  "aud": "https://layout.example.test",
  "jti": "evt-8f2c41d7",
  "iat": 1781460030,
  "sub_id": {
    "format": "iss_sub",
    "iss": "https://auth.photos.example",
    "sub": "user-2290"
  },
  "events": {
    "https://schemas.openid.net/secevent/caep/event-type/session-revoked": {
      "event_timestamp": 1781460000,
      "initiating_entity": "policy"
    }
  }
}

The type secevent+jwt keeps an event from being mistaken for an ID token or access token signed with the same key. iss is the transmitter, aud is the one receiver this event is for, and jti is unique to the event, so a receiver that sees it twice knows it is a duplicate. A SET has no exp: it reports something that happened, and the report stays true.

sub_id names the subject with a subject identifier from RFC 9493. The iss_sub format uses the issuer and subject the layout service already stored when Lena signed in, so it can find her account without an email address. Other formats include email, opaque and account, and a transmitter and receiver agree on the ones they understand. The events claim holds the event itself. Its key is the event type, and its value carries the type's own fields: event_timestamp says the revocation happened at 18:00, and initiating_entity says a policy did it, rather than an administrator, Lena herself or the system.

Before acting, the layout service verifies the signature with the keys published at the transmitter's jwks_uri, accepts only the issuer configured for this stream and only events whose aud is itself, and ignores a jti it has already processed. An endpoint that accepted any well-formed event would let anyone sign people out of the layout service, so it checks an event as carefully as a sign-in.

Setting up a stream

Events need somewhere to go, and the receiver needs to know what to expect. SSF describes both. The transmitter publishes its configuration at a well-known address, much as an OpenID provider publishes its discovery document:

GET /.well-known/ssf-configuration HTTP/1.1
Host: auth.photos.example

HTTP/1.1 200 OK
Content-Type: application/json

{
  "issuer": "https://auth.photos.example",
  "jwks_uri": "https://auth.photos.example/jwks",
  "delivery_methods_supported": [
    "urn:ietf:rfc:8935",
    "urn:ietf:rfc:8936"
  ],
  "configuration_endpoint": "https://auth.photos.example/ssf/streams",
  "status_endpoint": "https://auth.photos.example/ssf/status",
  "add_subject_endpoint": "https://auth.photos.example/ssf/subjects/add",
  "remove_subject_endpoint": "https://auth.photos.example/ssf/subjects/remove",
  "verification_endpoint": "https://auth.photos.example/ssf/verify",
  "authorization_schemes": [{ "spec_urn": "urn:ietf:rfc:6749" }]
}

The two delivery methods are named by the RFCs that define them: push (RFC 8935) and poll (RFC 8936). authorization_schemes says the stream management endpoints expect an OAuth access token, so the layout service gets one with its own client credentials and creates a stream:

POST /ssf/streams HTTP/1.1
Host: auth.photos.example
Authorization: Bearer <the layout service's access token>
Content-Type: application/json

{
  "delivery": {
    "method": "urn:ietf:rfc:8935",
    "endpoint_url": "https://layout.example.test/ssf/events"
  },
  "events_requested": [
    "https://schemas.openid.net/secevent/caep/event-type/session-revoked",
    "https://schemas.openid.net/secevent/caep/event-type/device-compliance-change",
    "https://schemas.openid.net/secevent/risc/event-type/account-disabled"
  ],
  "description": "Gazette staff sessions in the layout service"
}

HTTP/1.1 201 Created
Content-Type: application/json

{
  "stream_id": "f67e39a0a4d34d56b3aa1bc4cff0069f",
  "iss": "https://auth.photos.example",
  "aud": "https://layout.example.test",
  "delivery": {
    "method": "urn:ietf:rfc:8935",
    "endpoint_url": "https://layout.example.test/ssf/events"
  },
  "events_requested": [ "...the three types above..." ],
  "events_delivered": [
    "https://schemas.openid.net/secevent/caep/event-type/session-revoked",
    "https://schemas.openid.net/secevent/risc/event-type/account-disabled"
  ],
  "min_verification_interval": 60
}

The answer is worth reading line by line. events_delivered lists what the layout service will actually receive, which is what it asked for and the transmitter supports. Device compliance changes are missing, because the Gazette's identity provider does not emit them, so the layout service now knows not to rely on them. The stream's iss and aud are the values every event on it must carry.

A new stream is not yet proof that events arrive. The receiver asks for a verification event by posting the stream ID and a random state value to the verification endpoint, and the transmitter sends an event of type https://schemas.openid.net/secevent/ssf/event-type/verification carrying the same state down the stream. When it arrives and verifies, the whole path works, including signatures and the receiver's endpoint. Transmitters that do not send events about every subject by default also expect the receiver to add subjects at the add-subject endpoint, and each stream has a status, enabled, paused or disabled, that either side can read at the status endpoint.

Push or poll

With push delivery, the transmitter sends each SET to the receiver's endpoint as soon as it has one:

POST /ssf/events HTTP/1.1
Host: layout.example.test
Content-Type: application/secevent+jwt
Accept: application/json

eyJhbGciOiJFUzI1NiIsImtpZCI6ImdhemV0dGUtZXZlbnRzLTIwMjYtMDYiLCJ0eXAiOiJzZWNldmVudCtqd3QifQ.eyJpc3MiOiJodHRwczovL2F1dGgucGhvdG9zLmV4YW1wbGUiLCJhdWQiOiJodHRwczovL2xheW91dC5leGFtcGxlLnRlc3QiLCJqdGkiOiJldnQtOGYyYzQxZDciLCJpYXQiOjE3ODE0NjAwMzAsInN1Yl9pZCI6eyJmb3JtYXQiOiJpc3Nfc3ViIiwiaXNzIjoiaHR0cHM6Ly9hdXRoLnBob3Rvcy5leGFtcGxlIiwic3ViIjoidXNlci0yMjkwIn0sImV2ZW50cyI6eyJodHRwczovL3NjaGVtYXMub3BlbmlkLm5ldC9zZWNldmVudC9jYWVwL2V2ZW50LXR5cGUvc2Vzc2lvbi1yZXZva2VkIjp7ImV2ZW50X3RpbWVzdGFtcCI6MTc4MTQ2MDAwMCwiaW5pdGlhdGluZ19lbnRpdHkiOiJwb2xpY3kifX19.NdkLTz8l2RsJuVQNbzEn8Qt2GbmjUCU9wktjHrx9KJwOuc0Pr7XJtB1_S_tuGr1ZA-UP2AcCK-xsSXx9PlR8qw

HTTP/1.1 202 Accepted

The body is Lena's event in its compact form. 202 Accepted means the receiver verified the SET and took responsibility for it. It does not mean anything has been done yet. If the SET fails verification, the receiver answers 400 with a short error such as {"err": "invalid_audience"}, and sending the same event again will not change that answer. If the receiver is unreachable, or answers with a server error, the transmitter tries again later.

With poll delivery, the receiver asks the transmitter for waiting events, and acknowledges the ones it has processed in the same request:

POST /ssf/poll/f67e39a0a4d34d56b3aa1bc4cff0069f HTTP/1.1
Host: auth.photos.example
Authorization: Bearer <the layout service's access token>
Content-Type: application/json

{ "ack": ["evt-8f2c41d7"], "maxEvents": 10, "returnImmediately": false }

HTTP/1.1 200 OK
Content-Type: application/json

{
  "sets": { "evt-8f2d07a1": "eyJhbGciOiJFUzI1NiIs..." },
  "moreAvailable": false
}

The transmitter keeps each event until it is acknowledged, so a receiver that crashes before acknowledging gets it again. returnImmediately: false lets the transmitter hold the request open until an event arrives, which brings polling close to push in speed.

Push suits a receiver that can expose an endpoint on the internet and wants events within seconds. Poll suits one that cannot accept inbound connections, such as a service behind a corporate firewall, or that prefers to fetch events at its own pace. Either way, events can arrive more than once, late, or out of order: a retried push repeats an event, and two events from 18:00 and 18:01 can arrive the other way round. The receiver handles this by remembering each jti it has processed for a bounded time, making each action safe to repeat, and comparing event_timestamp values so that an old event never undoes a newer one.

What the events say: CAEP and RISC

SSF carries the events. Two profiles define what they mean. The Continuous Access Evaluation Profile (CAEP) covers changes to access that is already in progress. Risk Incident Sharing and Coordination (RISC) covers changes to the account itself, the kind an account provider shares with the services that trust it.

Some CAEP and RISC event types, with what the layout service might do
Event typeProfileWhat it reportsA reasonable response
session-revokedCAEPThe subject's session at the transmitter was endedEnd the matching local sessions
credential-changeCAEPA credential was created, changed, revoked or deletedAsk for a fresh sign-in if the change was not made from this session
assurance-level-changeCAEPThe authentication level behind a session went up or downRe-check actions that need the higher level
device-compliance-changeCAEPA device moved between compliant and not compliantRe-evaluate requests from that device
token-claims-changeCAEPClaims in an issued token, such as a role, are no longer trueStop relying on the old value
account-disabledRISCThe account was disabled at the providerSuspend the local account and its sessions
credential-compromiseRISCA credential is known to be compromisedEnd sessions and require recovery
identifier-recycledRISCAn identifier, such as an email address, now belongs to someone elseStop matching the old account by that identifier

The full type names are URLs, such as the CAEP session-revoked URL in Lena's event. The right-hand column is the receiver's choice, not the event's. A SET is a report of what happened at the transmitter, not a command, and the layout service's own policy decides what it means locally. It also limits whose sessions an event can touch: a stream from the Gazette can affect only the accounts the layout service links to the Gazette's issuer, never another customer's users. Events can flow the other way too. If the layout service sees Lena's session used from two countries at once, it can transmit an event back to the Gazette's identity provider.

Delivery is not enforcement

At 18:00:30 the layout service answers 202 Accepted. At 18:00:31, Lena's browser is still showing the page she was editing. Accepting an event and ending access are separate steps: the receiver has to match the subject to its local account, find that account's sessions and grants, end them, and make sure the next request is actually refused. A transmitter that records "delivered" knows nothing about the last part, and neither does an administrator reading that record. The only proof is a request with Lena's old session or token that comes back refused, while a colleague who signed in at the same time carries on working.

Streams also fail. The layout service's endpoint can be down for an hour, a stream can be paused and forgotten, or a transmitter can stop supporting an event type. A receiver should therefore never treat silence as evidence that nothing changed. The Gazette pairs the stream with the slower controls it already had: short access tokens, a full check of the account the next time the layout service needs a fresh token for her, and a periodic reconciliation that compares the layout service's active accounts with the directory and closes any that should not be there. The stream makes the gap seconds on a good day, and the other controls keep it bounded on a bad one. Revoking access and sharing security events later puts these pieces to work in a real compromise, where deciding what each change should end matters as much as sending it.

Check your understanding

Try these questions before moving on. If an answer isn't right, use the feedback and try again.

The layout service answers 202 Accepted to the event about Lena's revoked session. What does that answer prove? 1 of 3

Choose one answer.

Two events about one device arrive in the wrong order: compliant at 18:01 arrives first, then not compliant at 18:00. What should the receiver do? 2 of 3

Choose one answer.

The layout service runs behind a firewall that accepts no inbound connections, but it still needs the Gazette's session-revoked event for Lena within seconds. Which delivery fits? 3 of 3

Choose one answer.

Try it in the Lab

We value your privacy

We use cookies and similar technologies to enhance your browsing experience, and analytics to understand our traffic. By clicking "Allow all", you consent to optional analytics. Cookie Policy

Learn identity