Repository navigation
Description
Resource Token Verification step 6 says:
A PS MUST look up the person token identified by
person_token_jtiamong those it issued, and MUST verify thatps,sub,mission_s256, andtenantmatch that token exactly, rejecting the resource token on any mismatch or omission.
"look up ... among those it issued" makes every PS stateful about the person tokens it has issued. That is new storage on the hot path of every token request, and the document never says so.
Three things are missing:
-
The retention requirement is never stated. Person Token Endpoint and Person Token Structure describe issuance as if the token were self-contained. An implementer reading those sections would not know they had been handed a storage requirement; they discover it only in a verification step in a different section, phrased as an aside.
-
There is no retention floor. Must the record outlive the resource token's 5 minutes, or the person token's 1 hour? Neither bound is stated. A PS that discards the record at, say, 10 minutes would fail resource tokens presented late within the person token's validity, and nothing in the document tells it that is wrong. The interaction with deferred flows makes this worse: a resource token can expire while user interaction is pending, the agent re-fetches, and the same person token is referenced much later.
-
The absent-record case has no distinct error. Step 6 says "rejecting the resource token on any mismatch or omission", which conflates two different conditions: the PS has the record and the claims disagree (evidence of tampering, e.g. mission stripping), versus the PS has no record at all (could be tampering, could be the PS's own retention window expiring, could be a
jtifrom another PS). These deserve different error codes and probably different operator alerting.
Suggested fix: state the obligation in Person Token Endpoint or Person Token Structure — a PS MUST retain enough of each issued person token (jti, ps, sub, mission_s256, tenant, exp) to answer step 6, for at least the token's lifetime — and split the step 6 error into "unknown person token" and "person token claim mismatch".
Activity