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 change, written as a security event token
Each event travels as a Security Event Token (SET), a signed JWTA JSON Web Token: a compact token made of Base64url-encoded parts that carries claims and is usually signed. Anyone holding it can decode and read the claims, so the signature shows who issued it but hides nothing. 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 tokenIn OpenID Connect, a signed JWT from the provider, addressed to one client, saying which account authenticated, when, and in answer to which request. It reports a sign-in and is not used to call APIs. 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 issuerThe party that creates and signs a token, assertion, or certificate, named in a token's iss claim. A recipient must check that the issuer is exactly the one it expected and trusts. 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 revocationCancelling a credential, token, certificate, or authenticator before it would expire, so that it is no longer accepted. Whether every copy stops working at once depends on how services check it. 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 signatureA value made with a private key that lets anyone holding the matching public key check that a message came from the key's holder and has not been changed. It proves origin and integrity; it does not hide the message. 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 documentA JSON document that an OpenID Provider publishes at a well-known address under its issuer, listing its endpoints, where to find its signing keys, and its supported features so clients can configure themselves from one value.:
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 AcceptedThe 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.
| Event type | Profile | What it reports | A reasonable response |
|---|---|---|---|
session-revoked | CAEP | The subject's session at the transmitter was ended | End the matching local sessions |
credential-change | CAEP | A credential was created, changed, revoked or deleted | Ask for a fresh sign-in if the change was not made from this session |
assurance-level-change | CAEP | The authentication level behind a session went up or down | Re-check actions that need the higher level |
device-compliance-change | CAEP | A device moved between compliant and not compliant | Re-evaluate requests from that device |
token-claims-change | CAEP | Claims in an issued token, such as a role, are no longer true | Stop relying on the old value |
account-disabled | RISC | The account was disabled at the provider | Suspend the local account and its sessions |
credential-compromise | RISC | A credential is known to be compromised | End sessions and require recovery |
identifier-recycled | RISC | An identifier, such as an email address, now belongs to someone else | Stop 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.
Try it in the Lab
- Separate a verified signal from the access-ending resultSend a real session-revoked security event, see it accepted before anything is enforced, then let the application end Ava's access while Ben's keeps working.