feat(auth): add refresh-token GetState
GetState now tells a cell whether the token it stored under (owning_cell_id, source_id) is still live: it has no revoked_at (gitlab-org/gitlab#635135 (closed)). Expiry is ignored on purpose, as in consent.TokenScopes, because Doorkeeper counts an expired token as live until it is revoked. It answers NOT_FOUND when no row has that key, and the same when the row is a delete marker: a marker is no token, and AGENTS.md now states that rule for every reader by pair.
The lookup reads through the primary key on those columns. The through-server test that drives the three token RPCs together follows in !1118 (merged).
Part 12 of 14. The full change is in !959 (closed), the integration MR, kept open for the big picture.
- !988 (merged) feat(proto): add BulkUpsertClients and UpsertResult (merged)
- !989 (merged) feat(auth): add BulkUpsertClients with per-record results (merged)
- !990 (merged) refactor(auth): move the bulk record helpers to internal/batch (merged)
- !1010 (merged) fix(auth): decide refresh-token upserts in Go (merged)
- !1029 (merged) fix(auth): gate stored rows in one upsert helper and wait on the lock (merged)
- !1030 (merged) feat(auth): add a batch path to the refresh-token repository (merged)
- !1031 (merged) feat(proto): add BulkUpsert to the refresh-token service (merged)
- !991 (merged) feat(auth): add refresh-token BulkUpsert with per-record results (merged)
- !1069 (merged) feat(auth): refuse upserts for deleted refresh-token ids (merged)
- !992 (merged) feat(auth): add refresh-token BulkDelete (merged)
- !1110 (merged) feat(auth): mark a deleted client's refresh tokens before the cascade
- !993 (merged) feat(auth): add refresh-token GetState <- this MR
- !1118 (merged) test(auth): drive the refresh-token bulk RPCs through the server
- !994 (merged) feat(auth): count bulk RPC records by outcome
Previous: !1110 (merged) · Next: !1118 (merged)