Big Wide RFC

RFC: Identity Tokens - Acting as Your Domain on Other Servers

Nov 19, 2026 · @Tim Jansen

Latest version on GitHub: RFC-10-Identity-Tokens.md · Change history

Summary

This proposal lets an app prove to any server that it acts for the owner of a domain, without a redirect and without a login at that server. The app asks the user's Personal Upload Server (RFC-6) for an identity token: a short-lived signed token that says "this request comes from tim.example.com, for polls.example.com , through this app". The app sends it with its request. The server checks the signature with a key that it finds through the user's domain, and knows who acts.

POST /vote/https%3A%2F%2Fpolls.example.com%2Fp%2Flunch HTTP/1.1
Host: polls.example.com
Authorization: Bearer eyJ0eXAiOiJhdCtqd3QiLCJhbGciOiJSUzI1NiIsImtpZCI6IjIwMjYtMTEifQ.…
Content-Type: application/json

{ "id": "https://polls.example.com/p/lunch", "values": { "vote": "pizza" } }

The protocol is built from existing specs:

  • Getting a token: OAuth 2.0 Token Exchange (RFC 8693) at the PUPS token endpoint. The app trades its PUPS access token for a token for another server.
  • The token: a JWT in the JWT Profile for OAuth 2.0 Access Tokens (RFC 9068), signed by the PUPS server, valid for one server and at most five minutes. A read token for fetching personal feeds lives up to 24 hours, so that a reader needs one exchange per server and day, not one per fetch.
  • Sending it: an ordinary bearer token (RFC 6750).
  • Checking it: the server finds the PUPS server through the domain in the token, as RFC-6 discovery does, and its public keys in a JWK Set (RFC 7517).

It also adds the field identity to Feed Actions (RFC-9). A control with "identity": true performs its action as the user. The reader shows this next to the control, with the user's handle, e.g. Sent as @tim.example.com, and sends an identity token when the user clicks.

{
  "type": "select",
  "label": "Your vote",
  "name": "vote",
  "style": "radio",
  "values": ["pizza:Pizza", "sushi:Sushi", "tacos:Tacos"],
  "action": "https://polls.example.com/vote/{id}",
  "identity": true
}

Some things it makes possible:

  • A poll in a public feed with one vote per domain, instead of one feed URL per subscriber.
  • A discussion group with several moderators. The group's server keeps a list of moderators' domains. Each moderator acts from their own reader, and removing a moderator means removing a line from the list, not rotating a secret key that everyone shares.
  • RSVPs, sign-ups and requests that the server needs to attribute to a person: "@tim.example.com will attend".
  • Personal feeds. A reader fetches a feed as the user, and the server shows them their own content at the same URL as everyone else: replies to their comments, the state of their submissions, the moderation queues of their groups. On a public Feed Submissions (RFC-4) server such as rssmention, that needs no account, just like commenting there.

Why now. RFC-9 left this open: PUPS proves who the user is only to the user's own server. Elsewhere, only capability URLs decide who may act, so anything personal needs a feed URL per subscriber with secret keys in it, and the publisher must know every subscriber in advance. "Sign in with your domain" from RFC-6 does prove identity to any app, but it needs a redirect through the user's PUPS server and an owner login for every server, and every server would have to be an OAuth client. That is fine for signing in to an app once. It is far too much for a click on a poll in a feed. The reader already holds a PUPS token. It only needs a way to turn it into a proof that one other server can check.

Goals and non-goals

Goals

  • No redirect, no registration. The user acts on a server they have never visited, with one click, and the server needs no account, client registration or user database.
  • The user always knows. An app uses the user's identity only when the user does something that visibly says so, and only towards the server named there.
  • No keys to manage. The user's PUPS server holds the only signing key. It creates it on installation. Neither the user nor any app ever sees or handles a key.
  • Standard tools. Servers check tokens with any JWT library, and cache what they fetch. Apps need no cryptography.
  • The owner stays in control. Each app needs a grant with step-up confirmation. The owner sees where each app acted for them, and can revoke it at any time.

Non-goals

  • Who the person is. A token proves control of a domain, nothing more: not a real name, not that two domains belong to different people.
  • Authorization. What a domain may do on a server (vote, moderate, nothing) is the server's decision.
  • Sessions. A token is good for one request. Servers that want sessions build them themselves.
  • Anonymous or pseudonymous credentials. The domain is the identity, and the server learns it.

What is new and what is reused

Used as they are.

SpecUsed for
RFC 8693 token exchangeThe app gets an identity token for a server at the PUPS token endpoint.
RFC 9068 JWT access tokens, with RFC 7519 and RFC 7515The format of the token and its claims.
RFC 7517 JWK Set, jwks_uri from RFC 8414Publishing the PUPS server's public keys.
RFC 6750 bearer tokensSending the token to the server.
RFC-6 discovery and meFinding the PUPS server, and so its keys, from the domain in the token.

Used with stricter rules.

SpecRules of this RFC
RFC 8693Only the PUPS access token as subject token, one audience, which must be an https origin, optionally scope=read, and no other parameters.
RFC 9068 RS256 only. aud is a single origin, sub is the owner's me, and tokens live at most five minutes, read tokens at most 24 hours.

New in this RFC.

  • The scope identity-tokens, its consent screen and its log. See The PUPS side.
  • jwks_uri in the configuration document of RFC-6. The name comes from RFC 8414.
  • Finding the issuer from the subject. An RFC 9068 server normally knows its issuers in advance. Here, any domain can be the subject, and the server finds the issuer that the domain names. See Checking a token.
  • Read tokens, which live longer and are good only for reading. See Read tokens.
  • The identity field for Feed Actions , and what readers show for it. See Feed Actions.
  • Subscribing to a feed as the user, the access levels restricted, personal and optional, the link property https://bigwide.net/ns/access that announces them in host-meta.json, and the identity parameter of the Bearer challenge. See Personal feeds.

Roles

  • Owner: the person who controls the domain, e.g. tim.example.com, and runs a PUPS server for it, as in RFC-6.
  • PUPS server: the owner's server. It issues identity tokens and publishes the keys to check them.
  • App: the software that acts for the owner, typically a feed reader. It holds a PUPS grant with the scope identity-tokens.
  • Server : any server that receives requests from apps and wants to know who sends them, e.g. a poll, a discussion group, an action endpoint of RFC-9 or a server of personal feeds. In OAuth terms it is the resource server, and the token's audience.

Overview

  1. Grant, once. The user connects the app to their domain, as in RFC-6, and grants the scope identity-tokens with step-up confirmation. The consent screen says that the app may act as tim.example.com on other sites.
  2. Disclosure. Something in the app says that an action is performed as the user, and names the user's handle and the server, e.g. next to a poll in a feed: Sent as @tim.example.com to polls.example.com.
  3. Click. The user acts.
  4. Exchange. The app sends its PUPS access token to the PUPS token endpoint and asks for a token for https://polls.example.com . The PUPS server checks the grant, logs the request and returns a signed token, valid for 60 seconds.
  5. Request. The app sends its request to polls.example.com with Authorization: Bearer <token>.
  6. Check. The server checks the token's audience and lifetime, fetches https://tim.example.com/.well-known/host-meta.json, follows it to the PUPS configuration document and its keys (all of which it caches), and checks the signature. It now knows that tim.example.com acts, through the app named in the token.

The token

An identity token is a JWT that follows RFC 9068, signed with RS256.

{
  "typ": "at+jwt",
  "alg": "RS256",
  "kid": "2026-11"
}
{
  "iss": "https://tim.example.com",
  "sub": "https://tim.example.com/",
  "aud": "https://polls.example.com",
  "client_id": "https://app.example/oauth/client.json",
  "iat": 1795084920,
  "exp": 1795084980,
  "jti": "Jm1d6Zr0qKcXb9pQ2vY7sA"
}
ClaimMeaning
issThe PUPS server's issuer, exactly as in its configuration document.
subThe owner's identity: me from RFC-6, https://<host>/. The host is lowercase, in ASCII form, without port; the path is /.
audThe server the token is for: one https origin, as a single string, e.g. https://polls.example.com, or https://polls.example.com:8443 with a port other than 443. Never an array.
client_idThe app's client_id from RFC-6. The PUPS server verified it when the owner granted access.
iat, expIssued at, and expiry, in seconds since 1970 (UTC). exp is at most 300 seconds after iat ; 60 seconds is recommended. For a read token, at most 86,400 seconds (24 hours).
scopeOnly in a read token: read.
jtiA unique identifier, at least 128 bits from a secure random generator.

The header's typ is at+jwt, as RFC 9068 requires, and kid names the key in the PUPS server's JWK Set. A token for an action carries no scope: it grants nothing by itself, it only says who acts.

The handle. The user's handle is @ followed by the host of sub, e.g. @tim.example.com, as in a socialspec account. Apps show it to the user, and servers to everyone else.

Read tokens

A reader polls each personal feed many times a day. With a new token for every fetch, each poll would also cost a request to the user's PUPS server, and a reader with many personal feeds would soon hit its rate limit. Therefore an app can ask for a read token: the same token, with "scope": "read" and a lifetime of up to 24 hours.

{
  "iss": "https://tim.example.com",
  "sub": "https://tim.example.com/",
  "aud": "https://comments.example.org",
  "client_id": "https://app.example/oauth/client.json",
  "scope": "read",
  "iat": 1795084920,
  "exp": 1795171320,
  "jti": "q8Xb2LmN0vR5tYc7aWd1Ze"
}
  • Only for reading. Servers accept a read token only for GET and HEAD requests of feeds, never for an action or any other request that changes something. They answer those with 403 and WWW-Authenticate: Bearer error="insufficient_scope".
  • Used many times. The app keeps a read token for each origin and sends it with every fetch of the feeds there that the user subscribed to as themselves, until shortly before it expires. Servers don't reject a read token they have seen before.
  • Longer, but only for reading. A read token that leaks, or that the app still holds when the owner revokes the grant, lets its holder read the user's personal feeds at that one server for up to 24 hours. It can't vote, moderate or post anything: actions always need a token of at most five minutes.
  • Requested only for subscriptions. The app asks for a read token only for the origin of a feed the user subscribed to as themselves, and forgets it when the user unsubscribes or makes the subscription anonymous.

The PUPS side

This RFC extends RFC-6 with a scope, a grant type at the token endpoint and a key set.

Configuration document

Two changes to the configuration document of RFC-6:

  • scopes_supported contains identity-tokens.
  • jwks_uri: the URL of the server's JWK Set, e.g. https://tim.example.com/pups/jwks.json. It uses https.
{
  "issuer": "https://tim.example.com",
  "token_endpoint": "https://tim.example.com/oauth/token",
  "scopes_supported": ["identify", "write:/appdata/", "identity-tokens"],
  "jwks_uri": "https://tim.example.com/pups/jwks.json",
  "…": "…"
}

A server without jwks_uri, or without identity-tokens in scopes_supported, doesn't issue identity tokens. The RFC 8414 metadata lists the same jwks_uri, and urn:ietf:params:oauth:grant-type:token-exchange in grant_types_supported.

Nothing an app can write. Whoever can change the configuration document or the JWK Set can sign in as the owner everywhere. Both must be at paths that no app can write through PUPS: not under storage_base or public_base, and not in a declared well-known path. RFC-6 already keeps apps out of host-meta.json and its PUPS link.

The scope identity-tokens lets an app get identity tokens for any server. It grants nothing to write.

  • The consent screen shows it as a group of its own, after the four groups of RFC-6: "act as tim.example.com on other sites, e.g. vote in polls, moderate a group or read your personal feeds there". The details say that the app can prove to any site that it acts for the owner, whenever the owner uses it there, and that the apps page shows where it did.
  • It needs step-up confirmation, like the well-known scopes, and the server never skips the consent screen for a request that contains it.
  • A grant with this scope always comes with a refresh token, because the app needs a valid access token for every exchange.

Token exchange

The app sends a token exchange request to the token_endpoint:

POST /oauth/token HTTP/1.1
Host: tim.example.com
Content-Type: application/x-www-form-urlencoded

grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange
&client_id=https%3A%2F%2Fapp.example%2Foauth%2Fclient.json
&subject_token=<access token>
&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token
&audience=https%3A%2F%2Fpolls.example.com

For a read token, the request adds &scope=read.

The server checks:

  1. subject_token is a valid access token of this server, of a grant with the scope identity-tokens, issued to the client_id of the request. Otherwise: invalid_grant, or invalid_scope if the grant lacks the scope.
  2. audience is exactly one https origin: scheme, lowercase host in ASCII form, and a port only if it isn't 443; no path, not even /, no query, user info or fragment. The host is not localhost, *.local, *.localhost or an IP address. Otherwise: invalid_target.
  3. The request contains no resource, actor_token or requested_token_type other than urn:ietf:params:oauth:token-type:jwt. Otherwise: invalid_request. A scope other than read: invalid_scope.
  4. The grant is within its rate limit, e.g. 60 tokens per minute. Otherwise: 429.

It answers:

{
  "access_token": "eyJ0eXAiOiJhdCtqd3QiLCJhbGciOiJSUzI1NiIsImtpZCI6IjIwMjYtMTEifQ.…",
  "issued_token_type": "urn:ietf:params:oauth:token-type:jwt",
  "token_type": "Bearer",
  "expires_in": 60
}

For a read token, the answer adds "scope": "read", and expires_in is the token's lifetime, at most 86400. The server decides the lifetime; 24 hours is recommended. The app takes it from expires_in, not from its own assumptions.

The field is called access_token because RFC 8693 calls it that; the token is the identity token. The PUPS server stores no identity tokens, but it logs each one it issues (see Log). The token endpoint is already CORS-enabled (RFC-6), so browser apps can call it.

This is a second exception to RFC-6's rule that access tokens are valid only at the upload API: the app also sends its access token to the token endpoint, as the subject of the exchange.

Keys

  • One key pair, made by the server. The server creates an RSA key pair of at least 2048 bits during setup. The private key never leaves the server: it is kept outside the storage and outside the web root (or as a secret of the hosting platform), never uploaded, never shown, and never needs anything from the owner.
  • The JWK Set at jwks_uri contains the public keys, each with kty RSA, use sig, alg RS256 and a kid. It is served as application/json with Access-Control-Allow-Origin: * and Cache-Control: max-age of at most 3600 seconds.
{
  "keys": [
    { "kty": "RSA", "use": "sig", "alg": "RS256", "kid": "2026-11", "n": "0vx7agoebGcQSuu…", "e": "AQAB" }
  ]
}
  • Rotation. To change the key, the server adds the new public key to the JWK Set, waits until every cache has seen it (the JWK Set's max-age, at most an hour), and then signs with the new key. It removes the old key once the last token it signed with it has expired: after five minutes, or after 24 hours if it signed read tokens.
  • Compromise. If the private key may have leaked, the server removes it from the JWK Set at once and creates a new one. Servers stop accepting the old key within their cache time, at most an hour. The apps page should offer the owner a button for this.

Log

The PUPS server records every identity token it issues: the time, the client_id, the aud, and whether it is a read token. The apps page shows, for each app, the sites it acted on, how often and when it last did. The log is private to the owner, and kept for at least 30 days.

When the owner revokes a grant, the app gets no more identity tokens. Tokens for actions that it already has expire within five minutes, read tokens within 24 hours. A server may let the owner block single audiences, for one app or for all.

Using identity tokens in an app

An app that holds the scope identity-tokens:

  1. Only when the user knows. It gets an identity token only when the user does something that the app has presented as done with their identity, at the server named there. Never in the background, never when it fetches, prefetches or previews something, and never because content asked for it without the user's action. A feature that the user explicitly set up for one server counts as knowing, e.g. a feed they subscribed to as themselves (see Personal feeds).
  2. The audience from the URL. audience is the origin of the URL the app is about to send the request to, taken from that URL and from nothing else, in particular not from a feed or a response.
  3. One token per request. It gets a new token for every action, and sends it only in that request, as Authorization: Bearer <token>. Servers may reject a token they have seen before. The exception is a read token, which the app reuses for the fetches of the feeds the user subscribed to as themselves at that origin, and sends with nothing else.
  4. Never the access token. It sends its PUPS access token only to its PUPS server, as RFC-6 requires, and never to the server it acts on. It keeps read tokens as safely as its access token.
  5. Show the handle. Wherever the app says that something is done as the user, it shows the handle, e.g. @tim.example.com . If the app is connected to several domains, the user chooses which one acts, and the app shows that one.

If a request with an identity token is redirected to another origin, the app doesn't send the token there.

Checking a token

A server that accepts identity tokens checks each one in this order, and rejects it at the first failure with 401 and WWW-Authenticate: Bearer error="invalid_token". The cheap checks come first, so that a bad token never makes the server fetch anything.

  1. Header. The request carries Authorization: Bearer <token>. The JWT's header has typ at+jwt (or application/at+jwt), alg RS256 and a kid. Any other alg, including none, is rejected.
  2. Audience. aud is a single string and equals the server's own origin, which the server knows from its configuration, never from the request's Host header. A server that runs on several origins compares with the one the request was sent to.
  3. Lifetime and scope. exp is in the future and iat is not, each with at most 60 seconds of clock skew. Without scope, exp is at most 300 seconds after iat. With scope read, at most 86,400 seconds, and the request is a GET or HEAD of a feed (otherwise 403 with error="insufficient_scope"). Any other scope is rejected.
  4. Claims. iss, client_id and jti are present, and sub is a canonical identity URL, https://<host>/ as in The token.
  5. Issuer. The server runs RFC-6 discovery for the host of sub: it fetches https://<host>/.well-known/host-meta.json, takes the first link with the PUPS relation, and fetches the configuration document. Its issuer must equal iss exactly. This step ties the token to the domain: a PUPS server can sign tokens for anyone, but only the issuer that the domain itself names counts for that domain.
  6. Signature. The server fetches the JWK Set from the configuration document's jwks_uri, takes the key with the token's kid, which must be an RSA key of at least 2048 bits, and checks the signature.
  7. Replay. The server may remember each jti of a token without scope until its exp, and reject such a token if it has seen it before. Read tokens are meant to be used many times.

The token then proves that the owner of the host of sub acts, through the app named by client_id. The server takes the identity only from sub, never from the body of the request. What the domain may do is the server's own decision.

Fetching. The fetches in steps 5 and 6 follow the rules of RFC-6's CIMD fetch: https only, a 5-second timeout and a 64 KB limit, at most 3 redirects to https URLs, and only to public addresses, checked after DNS resolution.

Caching. The server caches host-meta.json, the configuration document and the JWK Set according to their HTTP cache headers, for at most one hour, so that a changed key or a moved PUPS server takes effect within that time. If the JWK Set lacks a token's kid , the server fetches it again, at most once every five minutes per issuer. It caches failed discoveries for at least a minute, and limits how often it starts a discovery for new hosts, so that nobody can use it to flood a domain with requests.

Any JWT library that supports RS256 and RFC 9068 does steps 1 to 4 and 6. Only step 5, finding the issuer from sub, needs code of its own.

Errors. A server that doesn't accept a domain, e.g. one that isn't a moderator, answers 403. A missing or invalid token gets 401.

Feed Actions

This RFC adds one field to the buttons and selects of Feed Actions (RFC-9).

FieldTypeMeaning
identitybooleantrue : the action is performed as the user. The reader shows this with the control, including the user's handle, and sends an identity token with the request. Defaults to false.

identity works like every other field: it can be set in a template and replaced in a declaration or a response. It applies to buttons and to selects with an action, the controls that send requests. Readers ignore it on other controls.

What the reader shows

For a control with "identity": true, the reader shows, before the user acts:

  • The handle of the domain that will act, e.g. @tim.example.com.
  • The host that the action goes to, e.g. polls.example.com, unless it is the feed's own host. RFC-9 asks readers to show this anyway; for identity actions it is required.

The text is visible together with the control, or once for its group if several of the group's controls have identity. It is never only in a tooltip, the help text or a menu. How it looks is up to the reader:

What should we order on Friday?

  ( ) Pizza   ( ) Sushi   ( ) Tacos
  Sent as @tim.example.com to polls.example.com

The reader's own words. The reader doesn't know what an action does, and the publisher must not be able to describe it in the reader's voice. The notice therefore uses only generic verbs, such as Sent as or Submitted as, and never words from the feed or a response: not the control's label, not a display's text, not a message. The handle and the host are the only variable parts.

If the control has confirm, the reader adds the notice to the confirmation, separate from the publisher's question: "Block this user? They can't post or comment anymore." followed by Sent as @tim.example.com to groups.example.com. A menu button with identity shows the notice in its menu entry or in a confirmation before it sends anything.

Performing the action

When the user triggers a control with identity, the reader, after the confirmation if there is one:

  1. gets an identity token for the origin of the expanded action URL, as described in Using identity tokens in an app;
  2. sends the request as RFC-9 describes, with Authorization: Bearer <token>.

If it can't get a token, it says so, and doesn't send the request.

  • Not signed in. A reader that has no grant with identity-tokens still shows the control, with a note such as Sign in with your domain to use this. Clicking it starts the sign-in of RFC-6, or the grant of the missing scope. Afterwards, the user clicks again: the reader never performs the action on its own after sign-in.
  • No domain. A reader may explain that the action needs the user's own domain, and offer the item's link instead.
  • The user's own server. If the action URL is under the actions_base of the user's own PUPS server, RFC-9's rules apply and the reader sends its access token instead. identity then only changes what the reader shows.

Readers still send no cookies. They send an identity token with an action only for controls with identity, and only when the user triggers them.

On the server

The action endpoint checks the token as described in Checking a token. A missing or invalid token gets 401, with a message, e.g. "Sign in with your domain to vote. You can also vote on the website: https://polls.example.com/p/lunch". A domain that may not perform the action gets 403 with a message.

The response, and the next version of the feed, may name the user, e.g. a display "You voted for Pizza" or "Accepted by @tim.example.com". The server takes the name from the token's sub.

Readers without support

RFC-9 requires readers that don't support this RFC to show none of an item's controls if one of them has identity, and to keep the item's actions fallback, as if they didn't support actions at all (see RFC-9). Such a reader never offers an action that can only fail.

Publishers therefore add the ordinary actions fallback (RFC-8) to items with identity controls, with a link to a page where the user can do the same. A reader that supports this RFC removes it, as RFC-9 requires, also when the user isn't signed in.

Examples

A poll in a public feed. Everyone gets the same feed. The server counts one vote per domain:

{
  "id": "https://polls.example.com/p/lunch",
  "url": "https://polls.example.com/p/lunch",
  "title": "What should we order on Friday?",
  "content_html": "<p>Vote until Thursday noon.</p><p class=\"without-extension-actions\"><a href=\"https://polls.example.com/p/lunch\">Vote on the website</a></p>",
  "_actions": {
    "actions": [
      {
        "type": "select",
        "label": "Your vote",
        "name": "vote",
        "style": "radio",
        "values": ["pizza:Pizza", "sushi:Sushi", "tacos:Tacos"],
        "action": "https://polls.example.com/vote/{id}",
        "identity": true
      }
    ]
  }
}

Tim picks Pizza. His reader gets a token for https://polls.example.com from his PUPS server and sends the vote with it. The server checks the token, records the vote for tim.example.com, and answers with the results, as in RFC-9's poll example. If Tim votes again, the server answers with "You already voted for Pizza" and the results.

Several moderators. The Feed Readers group keeps a list of its moderators' domains, and publishes its moderation queue as a restricted feed that only they can read (see Personal feeds). The buttons have identity, so the server knows which moderator acts:

"templates": {
  "accept": {
    "type": "button",
    "label": "Accept",
    "style": "major",
    "group": "accept",
    "action": "https://api.example.com/feed-readers/accept/{id}",
    "identity": true
  }
}

The reader shows Sent as @tim.example.com to api.example.com with the button. The server accepts the post, notes "Accepted by @tim.example.com", and answers 403 to domains that aren't moderators. If a moderator leaves, the group removes their domain from its list: from then on, their reader gets 403 for the queue and for the buttons. No URL or key changes for the others.

Personal feeds

A feed can be personal: the same URL shows each subscriber their own content. With identity tokens, a reader fetches such a feed as the user, and the server needs neither accounts nor a secret feed URL per subscriber.

This is most useful on public Feed Submissions (RFC-4) servers, such as an rssmention installation that hosts comments and discussion groups for many sites. Whoever comments there never registered, and doesn't need to: in RFC-4, their domain is their identity. Identity tokens let them read what belongs to that identity. Such a server can offer every author one personal feed, e.g. https://comments.example.org/me.json, with:

  • replies to their comments and posts, across all sites and groups that the server hosts;
  • the state of their submissions: pending, accepted or rejected, with the reason;
  • the moderation queues of the groups they own or moderate, with the actions of RFC-9;
  • the posts of private groups they belong to.

Public feeds can use it too, e.g. a poll that shows each subscriber their own vote after a refresh, where everyone else sees the plain poll.

Access levels

A feed that uses identity tokens has one of three access levels:

LevelMeaningExample
restrictedOnly some domains may read the feed, those on a list that the server keeps. All others get 403.The moderation queue of a group, for its moderators
personalEvery domain may read the feed, and each gets its own version. A token is required.https://comments.example.org/me.json
optionalA public feed that shows a personal version to subscribers who send a token.The poll that shows each subscriber their own vote

Feeds without identity tokens are public, which is the default everywhere. The level tells the reader what to offer before the user decides. The server alone decides who gets what.

Announcing a feed

A domain lists its feeds in host-meta.json with the link relation https://bigwide.net/ns/feed (RFC-7). A feed that isn't public carries its level in the link property https://bigwide.net/ns/access, and its title in titles:

{
  "rel": "https://bigwide.net/ns/feed",
  "type": "application/feed+json",
  "href": "https://comments.example.org/groups/feed-readers/queue.json",
  "titles": { "default": "Feed Readers: moderation queue" },
  "properties": { "https://bigwide.net/ns/access": "restricted" }
}
  • Values. restricted, personal or optional. A link without the property, or with public, is a public feed. Readers treat an unknown value like restricted.
  • Titles. A reader can't fetch a restricted or personal feed before the user decided to subscribe as themselves, so the link should have a title. Without one, the reader shows the URL.
  • Readers show such a feed with its level, e.g. with a lock for restricted, and offer Subscribe as @tim.example.com. They never fetch it with a token to find out whether the user has access: that alone would tell the server who the user is.
  • Web pages and profiles that render the domain for visitors, such as webpup, leave out restricted and personal feeds, since a browser can't read them. They show optional feeds like public ones.
  • Not a lock. The property only describes the feed. Nothing becomes protected by it, and nothing becomes public without it.

The link usually sits in the host-meta.json of the feed's own server, e.g. https://comments.example.org/.well-known/host-meta.json. A site may also list a feed on another server in its own host-meta.json, e.g. the moderation queue of its comments. A PUPS server serves every file with a public URL to everyone, and its private files have no links (see RFC-6), so apps never set the property through the host-meta endpoint. Links to feeds on other servers are added by the owner.

The server's challenge

A reader may also come to the feed through its URL alone, pasted by the user or linked from somewhere. The server tells it in the response, with a Bearer challenge (RFC 6750) that carries the parameter identity:

HTTP/1.1 401 Unauthorized
WWW-Authenticate: Bearer realm="Feed Readers: moderation queue", identity="required"
Content-Type: application/problem+json

{ "type": "https://bigwide.net/ns/identity-required", "title": "This feed needs an identity token",
  "detail": "Only the moderators of Feed Readers can read this feed. Subscribe with a reader that supports bigwide.net identity tokens." }
  • identity="required" on a 401: the feed is restricted or personal, and a fetch without a token gets nothing else.
  • identity="optional" on the normal 200 of an optional feed: a token would change the response. HTTP allows WWW-Authenticate on any response for this (RFC 9110). Readers that don't know it ignore it.
  • How to authenticate. The parameter means: send an identity token of this RFC, with the origin of the feed URL as audience, as Authorization: Bearer. The challenge names no audience and no issuer. The audience always comes from the URL, and the issuer is always the user's own PUPS server, so a feed can't steer tokens anywhere.
  • realm may name the feed. Like all text from the server, the reader shows it only as the server's words, never as its own.
  • The body. A 401 or 403 may explain itself as application/problem+json (RFC 9457), e.g. "Ask the admin of comments.example.org to add you". Readers without support for this RFC at least have something to show.
  • Readers in a browser. A web-based reader fetches the feed from another origin, so the server sends every response of the feed, 401 and 403 included, with CORS headers: Access-Control-Allow-Origin (* is fine, since readers send no cookies), Authorization in Access-Control-Allow-Headers of its preflight answers (the wildcard * doesn't cover it), and Access-Control-Expose-Headers: WWW-Authenticate . Without the last one, the browser hides the challenge from the reader, also on a 200, and the reader can't tell that the feed takes a token. Servers that support conditional requests expose ETag too. A feed that uses identity tokens therefore must be CORS-enabled to be read from a browser: a web-based reader never fetches it through a CORS proxy or another intermediary, because the proxy would see the read token and could read the user's personal feed with it for up to 24 hours. Without these headers, browser-based readers can't subscribe to the feed at all.

After the reader sent a token, the server answers:

ResponseMeaningThe reader
200The domain may read the feed.Subscribes, and shows the handle with the subscription.
403 The token is valid, but the domain may not read the feed, e.g. because it isn't on the list of moderators.Tells the user that @tim.example.com has no access, with the body's detail if there is one, and doesn't subscribe.
401 with WWW-Authenticate: Bearer error="invalid_token"The token was rejected, e.g. because the read token expired.Tries once more with a new token, then shows an error.

A server never answers 403 to a fetch without a token: it doesn't know who asks yet. A subscribed feed that starts answering 403, e.g. because a moderator was removed, stays subscribed, and the reader shows that access was lost.

Subscribing as the user

A reader fetches a feed with identity tokens only if the user chose to subscribe to it as themselves:

  • The user decides. When the user subscribes to a feed that is announced as restricted, personal or optional, or that answered with an identity challenge, the reader offers Subscribe as @tim.example.com. Afterwards it shows the handle with the feed, e.g. next to its title or in its settings, and lets the user change the subscription to an anonymous one at any time (for restricted and personal feeds, that means unsubscribing). Nothing in a feed, a link or a response can turn a subscription into one with identity.
  • No probing. A challenge leads to an offer, never to a token on its own, also for feeds the user subscribed to anonymously before.
  • A read token for the fetches. The reader gets a read token for the origin of the feed URL, and sends it with each fetch of the feed until shortly before it expires; then, or after a 401 , it gets a new one. It sends it with nothing else: not with the items' links, images or attachments, and not with other feeds on the same origin, unless the user subscribed to them as themselves too. If the request is redirected to another origin, the token isn't sent there.
  • Actions stay separate. Subscribing as the user doesn't make the feed's actions send identity tokens. Only controls with identity do that, as described in Feed Actions.

On the server

  • Check every fetch. The server checks the token as described in Checking a token, with the feed's origin as audience.
  • No shared caching. A personal feed is served with Cache-Control: private (or no-store) and Vary: Authorization , so that no cache between the server and the reader serves one user's feed to another.
  • Status codes and challenges as in The server's challenge. restricted and personal feeds answer 401 with identity="required" without a token; optional feeds answer 200 with identity="optional".
  • The same feed. feed_url is the same for everyone. Item ids stay stable for each subscriber, so readers can keep track of what was read.
  • Polling. Readers poll personal feeds with read tokens, so the PUPS server sees about one exchange per origin and day. Servers should support conditional requests (ETag, If-None-Match), computed per subscriber, and readers should not poll personal feeds more often than other feeds.
  • Both kinds of token. A personal feed accepts read tokens and tokens for actions alike. An action in the feed, e.g. a moderator's Accept, gets a read token rejected with insufficient_scope.

Security considerations

Threat model

AttackerWants toMain defences
A malicious server that receives a tokenUse it on another server, or lateraud is one origin, lifetime at most five minutes, optional jti replay check; read tokens live up to 24 hours but only read, at the server that has the feed anyway
Someone who copies a token from a log or proxyAct as the userSame as above; the token is good for one request at one server, a read token for reading there for up to 24 hours
A malicious feed Make the reader reveal the user's identity, or act as the userNothing without a click; the handle and the host are shown before the click; aud taken from the URL; only the user can subscribe as themselves
A cache between server and readerServe one user's personal feed to anotherCache-Control: private and Vary: Authorization on personal feeds
A feed, link or response that claims to need identityLearn who reads itAn access property or a challenge only leads to an offer; the user decides, and the token's audience comes from the feed URL
A malicious or compromised app with the scopeAct as the user anywhereStep-up consent, rate limits, log on the apps page, revocation, client_id in every token
An app with only write scopesPublish its own key or issuer Configuration document, JWK Set and the PUPS link in host-meta.json are not writable through PUPS
Someone who wants to forge tokensSign in as someone elseSignature with the PUPS server's key; the issuer is found from the domain in sub
Someone who wants to misuse serversUse servers to reach internal networks, or to flood a domainFetch rules, cheap checks first, caching of successes and failures, discovery rate limits
An attacker who gets the domain, or the PUPS server's keyAct as the ownerNone in the protocol: domain control is identity. Key rotation limits a stolen key to the cache time

Tokens

  • Audience. A token is valid at one origin. Servers compare aud with their configured origin, exactly. Several services on one origin share tokens; services that must not, use separate origins.
  • Lifetime. At most five minutes, recommended 60 seconds. Revocation needs no list: when the grant is revoked, the app gets no new tokens.
  • Read tokens. Up to 24 hours, so revoking an app stops its reading only after up to a day. That is the price of not asking the PUPS server for every poll. Read tokens can't act, and a server never accepts one for a request that changes something.
  • Bearer. Whoever holds a token can use it at its server until it expires. A server that keeps jtis makes a token for an action good for one request. Binding tokens to a request is an open question.
  • Algorithms. RS256 only. Servers never take the algorithm from anywhere but their own rules, never accept none , and never use a key from the token itself (jwk, jku or x5u headers are ignored).
  • No confusion with PUPS access tokens. Identity tokens are never accepted by the PUPS upload API, and PUPS access tokens are never sent to other servers. PUPS access tokens are opaque, identity tokens are JWTs with another server as audience.

The issuer

The check in step 5 is what makes a token mean "the owner of this domain acts". Any PUPS server can sign a token with any sub. Only the issuer that https://<host>/.well-known/host-meta.json points to is accepted for that host. Whoever controls host-meta.json and the PUPS link in it therefore controls the identity, as in RFC-6: the domain's owner, and the host or CMS that serves the file.

Disclosure

Identity tokens tell a server who the user is. A feed that could make the reader send them at will could unmask every reader of the feed. Therefore readers send them with an action only when the user triggers a control that showed the handle and the host beforehand, and only to the origin of the action URL. With a feed fetch, they send them only for feeds that the user subscribed to as themselves, and only to the origin of the feed URL.

One domain is not one person

Domains are cheap, and subdomains are free for whoever has one domain. A poll with one vote per domain is a poll with one vote per domain. Publishers who need more can combine identity tokens with capability URLs, or with their own list of domains that may vote.

Privacy considerations

  • The server learns the handle and the app. It learns the domain, which often is the user's name, and the client_id of the app the user uses. That is the purpose, and the reader shows it before the user acts.
  • The owner's server learns where the user acted. The log stays on the owner's own PUPS server and is visible only to the owner.
  • Nothing else. The token contains no other data about the user. Servers that want a name or an avatar read the user's public profile (SocialSpec, host-meta.json).
  • The fetches are visible. A server that checks a token fetches host-meta.json and the PUPS documents from the user's domain, so the domain's logs show which servers checked tokens.
  • Personal feeds report reading. Each fetch of a feed subscribed as the user tells its server that the user still follows it, and when their reader polls. Readers therefore show the handle with such subscriptions, and let the user make them anonymous.

Relation to other specs

  • RFC-6 sign-in with your domain proves the owner's identity to an app, interactively, with a redirect. Identity tokens let that app prove it further to any server, without one.
  • AT Protocol service auth (Bluesky) is the closest model: the user's server signs short-lived JWTs for one other service, and the service finds the key through the user's identity. This RFC finds the server through host-meta.json instead of a DID document, and uses OAuth token exchange to get the token.
  • OpenID Connect ID tokens are similar JWTs, but their audience is the client that signed the user in, and their issuer is configured in advance. Identity tokens are for a third server, which finds the issuer from the subject.
  • IndieAuth proves a domain to an app with a redirect, like RFC-6.
  • HTTP Message Signatures (RFC 9421), as used for actors in ActivityPub, sign each request with a key that is published for the actor. They bind the proof to the request, at the cost of canonicalizing requests on both sides. Here, the app needs no key and no cryptography.

Conformance

PUPS servers

  • The configuration document has jwks_uri and identity-tokens in scopes_supported; the JWK Set is served with CORS and a max-age of at most 3600; neither is writable through the upload API, post_endpoint or the host-meta endpoint.
  • Consent for identity-tokens shows its own group and needs step-up confirmation; it is never skipped.
  • Token exchange with a valid access token of a grant with the scope returns a token whose header and claims match The token , signed by a key in the JWK Set, with a lifetime of at most 300 seconds; with scope=read, a read token with "scope": "read" and a lifetime of at most 86,400 seconds, and scope in the answer.
  • Rejected: an access token without the scope (invalid_scope), a revoked or expired one (invalid_grant), a client_id other than the grant's, an audience with a path, /, query, user info, fragment, http, IP address, localhost or several values (invalid_target), a resource or actor_token (invalid_request), a scope other than read (invalid_scope).
  • Issued tokens appear in the log on the apps page, read tokens marked as such; after revocation, no more tokens are issued.
  • An old key stays in the JWK Set until the last token signed with it has expired, read tokens included.

Readers

  • A control with identity shows the handle, and the host if it differs from the feed's, before the user acts, also on menu buttons and in confirm dialogs. The notice is in the reader's own generic words and contains no text from the feed or a response.
  • A token is requested only on a click, with the origin of the expanded action URL as audience, and sent only in that request.
  • Without a grant, clicking starts sign-in, and the action is not sent afterwards without a new click.
  • The actions fallback of an item with identity controls is removed.
  • Feeds are fetched with a token only after the user subscribed as themselves; the handle is shown with the subscription; an access link property or a challenge with identity leads to an offer, never to a token on its own; the token is sent with the feed's fetches only, not with its links, images, attachments or redirects to other origins.
  • Feed fetches use a read token for the origin, reused until shortly before it expires and renewed after a 401; read tokens are never sent with actions or other requests.
  • Readers in a browser fetch feeds with a token directly from the feed's server, never through a CORS proxy or another intermediary.
  • After a token: 200 subscribes, 403 tells the user that the domain has no access and doesn't subscribe, 401 with invalid_token is retried once with a new token.
  • Pages that render a domain for visitors leave out feed links whose access is restricted, personal or unknown.

Servers

  • Tokens are rejected for: a wrong aud , an array aud, an expired token, a lifetime over 300 seconds without scope or over 86,400 seconds with scope read, any other scope, an alg other than RS256, a sub that isn't a canonical identity URL, an iss other than the one the domain's host-meta.json leads to, a kid not in the JWK Set, a bad signature.
  • A read token gets 403 with insufficient_scope for any request other than a GET or HEAD of a feed, and is not rejected for being used more than once.
  • No fetch happens for a token that fails steps 1 to 4.
  • Discovery fetches respect the fetch rules, including private addresses after DNS resolution.
  • Personal feeds carry Cache-Control: private or no-store and Vary: Authorization.
  • Feeds that use identity tokens answer with CORS headers that allow Authorization and expose WWW-Authenticate, on 401 and 403 too.
  • restricted and personal feeds answer a fetch without a token with 401 and WWW-Authenticate: Bearer identity="required", never with 403; optional feeds answer it with 200 and identity="optional"; a valid token of a domain without access gets 403.

Open questions

  • Asking for access. A domain that gets 403 for a restricted feed can only ask the admin by other means. Should the feed name a way to ask, e.g. an RFC-4 submission endpoint for requests?
  • Binding tokens to a request. Should a token name the method and URL it is for, like AT Protocol's lxm , or be sender-constrained with DPoP?
  • Optional identity. Controls that the user may use either anonymously or as themselves, e.g. a poll that accepts both and counts them separately.
  • Owner policies. Should owners be able to say "ask me every time" for an app, or allow it only certain audiences, and how would the app learn that?
  • RSS. If Feed Actions are ported to RSS, identity goes with them.
  • Names. The scope identity-tokens, the field identity and the token scope read are proposals.