Skip to content

OpenID Connect

Sign in with Revoked. A service signs people in with an ordinary OpenID Connect client library: the authorization code flow with PKCE, with the service identified by its origin and no registration. Each service sees its own subject for a person, so services cannot match their users across each other. Vault entries a service asks for are given as grants it reads with a token, never as copies. Every sign-in is approved in the Revoked app, signed with a key that stays on the device; there is no sign-in in the browser and no session at the provider.

POST /api/sign-ins/{id}/pause

Pause a service you signed in to

Auth: Session

Refuses new sign-ins at the service, its access tokens and its unredeemed codes, and pauses its grant. An authorization request is answered access_denied, the same as a decline. Does nothing to a disconnected service.

Parameters

Name In Required Notes
id path yes

Responses

Status Meaning
200 status and newIdOnReturn as they now stand.
404 Not one of your sign-ins.

POST /api/sign-ins/{id}/resume

Activate a paused service

Auth: Session

Undoes a pause. A grant the owner paused or changed themselves is left as it is. Does nothing to a service that isn't paused.

Parameters

Name In Required Notes
id path yes

Responses

Status Meaning
200 status and newIdOnReturn as they now stand.
404 Not one of your sign-ins.

POST /api/sign-ins/{id}/disconnect

Disconnect a service you signed in to

Auth: Session

Revokes its grant in whichever workspace it lives, and refuses for good every access token and code issued so far. The row stays, marked disconnected. A later sign-in needs a new approval in the app.

With newId the next sign-in gets a new sub, unrelated to the old one, and a new grant id, and the remembered name is forgotten. It can't be undone: calling this again can add a new ID, never take one back. None of this reaches the session the service keeps for itself.

Parameters

Name In Required Notes
id path yes

Request body

application/json

Field Type Notes
newId boolean Give the service a new sub at the next sign-in.

Responses

Status Meaning
200 status and newIdOnReturn as they now stand.
404 Not one of your sign-ins.

GET /.well-known/openid-configuration

Provider metadata

Unauthenticated

Callable with no credential.

The discovery document client libraries start from. The issuer is https://<domain>. A server reached at localhost answers as http://localhost:<port>, so a development setup with the real DOMAIN works; any other Host header falls back to the domain. Only the code flow with PKCE (S256) and public clients (token_endpoint_auth_methods_supported: none) are offered; subjects are pairwise.

Responses

Status Meaning
200 The provider's metadata.

GET /oidc/jwks

ID-token signing keys

Unauthenticated

Callable with no credential.

The key ID tokens are signed with (RS256). It is not the root key: it is a separate key the root key certifies. revoked_certification carries that certification in the format of every root-key statement — payload (base64url of a JSON body naming the domain and the key's RFC 7638 thumbprint as kid) and signature (hex) — so a client that walks the DNS pin to the root key can tie the signing key to the domain as well. Ordinary clients ignore the member.

Responses

Status Meaning
200 A JSON Web Key Set.

Response fields

Field Type Notes
keys array of object

GET /oidc/authorize

Authorization endpoint

Unauthenticated

Callable with no credential.

The page a service sends the browser to. It checks the request and offers two ways to answer it. In the browser, the person signs in with a passkey on the page, sees the consent screen (/oidc/authorize/app), and approves with a second, user-verified passkey assertion bound to the ticket (/api/approvals/begin and /finish, then /oidc/authorize/consent with approval). Or the page's revoked://signin?… link, carrying the same parameters, opens the app, which approves with an identity signature. The page never opens the app by itself. revoked_identity is granted only from the app.

client_id is the service's origin (https://game.example), and redirect_uri must lie on that origin. Until both check out, nothing is sent back: the page shows an error instead of redirecting. Every later refusal goes back to redirect_uri with error, state and iss.

prompt=none always answers login_required, since every sign-in needs the person's approval in the app.

Parameters

Name In Required Notes
client_id query yes The service's origin.
redirect_uri query yes
response_type query yes
scope query yes openid, plus any of profile, email, revoked_identity.
code_challenge query yes
code_challenge_method query yes
state query no
nonce query no
prompt query no
claims query no JSON. {"userinfo": {"revoked_links": {"values": ["shipping_address"]}}} asks for vault entries by key, at most 20.
revoked_return query no For the app alone. background: the service's page waits for the result, so the app hands the answer over itself, without a browser, and shows the check code derived from code_challenge.

Responses

Status Meaning
200 The page that opens the Revoked app with the request.
302 A refusal sent back to the service.
400 The service's origin or redirect address did not check out.

POST /oidc/authorize/app

Open a request in the app

Auth: Session

Called by the Revoked app for a revoked://signin link, with its session. Checks the authorization request as the authorization endpoint does and returns what the consent screen shows: the account, what each scope would reveal, the person's entries for each key asked for, and a ticket for the decision.

A request that names its service correctly but cannot go on is answered with redirect alone: the refusal, in the standard form, for the app to send the browser to.

Request body

application/json

Field Type Notes
params object The authorization request's parameters, as the link carried them.

Responses

Status Meaning
200 The consent data and a ticket, or a refusal to send back.
400 Refused, with a named reason.
401 Refused, with a named reason.
429 Too many attempts. Password gates, probes and challenges are limited per client, so a slug cannot be brute-forced.

Response fields

Field Type Notes
ticket string
client string
account object
scopes array of object
links array of object
sections array of object When entries or a name are asked for, the sections of the person's active workspace, each with its record ids.
signers array of string The person's active identity ids, primary first, from every workspace. The app signs with one whose key it holds.
nameOptions array of object With the profile scope, the names the person could give this service.
nameSelected object The option to start from, when there is one.
returning object Present when the person signed in to this service before: firstAt, lastAt, the scopes and links granted then, and the name chosen.
disconnected object Present when the person disconnected this service; at, and newId when it gets a new identifier on return.
redirect string
paused string With redirect, the sign-in the person paused for this service, which is why it was refused.

POST /api/approvals/begin

Start a passkey approval

Auth: Session

Starts a WebAuthn assertion for the signed-in account's passkeys, with user verification required. The challenge is SHA-256("revoked-approval-v1" ‖ purpose ‖ ticket ‖ nonce), each part ended by a zero byte, so the assertion approves this ticket for this purpose and nothing else.

Request body

application/json

Field Type Notes
purpose string (signin | connect)
ticket string For signin, the ticket from /oidc/authorize/app.

Responses

Status Meaning
200 The ceremony.
400 Refused, with a named reason.
401 Refused, with a named reason.
429 Too many attempts. Password gates, probes and challenges are limited per client, so a slug cannot be brute-forced.

Response fields

Field Type Notes
session string
options object WebAuthn request options.

POST /api/approvals/finish

Finish a passkey approval

Auth: Session

Checks the assertion: one of the signed-in account's passkeys, with the user-verified flag. The approval returned is good once, for the ticket and purpose it was begun for, for two minutes.

Request body

application/json

Field Type Notes
session string
credential object The WebAuthn assertion, as JSON.

Responses

Status Meaning
200 The approval.
400 Refused, with a named reason.
401 Refused, with a named reason.
429 Too many attempts. Password gates, probes and challenges are limited per client, so a slug cannot be brute-forced.

Response fields

Field Type Notes
approval string

POST /oidc/authorize/consent

Record the decision (the app)

Auth: Session

Spends the ticket; only the session that opened it can answer it. An approval is signed with one of the person's active identities: signature is the identity key's signature over revoked-oidc-consent: followed by the ticket. The key never leaves the device, so a session token alone approves nothing. A browser sends approval instead, from POST /api/approvals/finish for purpose signin and this ticket; such an approval never grants revoked_identity.

With approve: true, grants openid plus the listed scopes that were asked for, and gives the service a grant over the chosen entries — one link per person and service, updated on every sign-in that shares something, with a fresh token each time. The answer is the address to send the browser to: with a code, or with error=access_denied.

profile is granted only with a name: one of the person's identities or vault entries, checked to be their own. A vault entry is also shared under the key name, so the service can follow it. Leaving name out when the service asked for profile withdraws any name it had.

Request body

application/json

Field Type Notes
ticket string
approve boolean
identityId string With approve: true, unless approval is sent.
signature string Base64. With approve: true, unless approval is sent.
approval string A passkey approval for purpose signin and this ticket, in place of identityId and signature.
scopes array of string
links object Requested key → an entry id from the person's active workspace. An entry under another key also gets an alias under the requested key, unless that key is taken or the entry is a file.
created array of string Ids of entries the app saved for this sign-in, filed in the service's section. Must be the person's own and in their active workspace.
name object The name this service gets.

Responses

Status Meaning
200 Where to send the browser.
400 oidc_request_invalid, or oidc_link_record_invalid for an entry that is not the person's or not in their active workspace.
401 not_authenticated, identity_required, or signature_invalid.
403 identity_not_owned or identity_revoked.
409 oidc_sign_in_paused: the person paused this service after the request was opened.

Response fields

Field Type Notes
redirect string

POST /oidc/token

Token endpoint

Unauthenticated

Callable with no credential.

Redeems an authorization code. The code is spent the moment it is presented; client_id, redirect_uri and the PKCE verifier must match the authorization request. There is no client secret and no refresh token: the ID token proves a sign-in that just happened, and the service keeps its own session after that.

The ID token (RS256, 10 minutes) carries sub, aud, iss, iat, exp, auth_time, nonce, and the claims of the granted scopes: name, email and email_verified, and revoked_identity (the fingerprint of the person's primary identity). name is the name the person chose for this service, as it stands when the token is issued.

Request body

application/x-www-form-urlencoded

Field Type Notes
grant_type string (authorization_code)
code string
client_id string
redirect_uri string
code_verifier string

Responses

Status Meaning
200 The tokens.
400 An OAuth error: invalid_grant, unsupported_grant_type or invalid_request.
429 Too many attempts. Password gates, probes and challenges are limited per client, so a slug cannot be brute-forced.

Response fields

Field Type Notes
access_token string
token_type string
expires_in integer
id_token string
scope string

GET /oidc/userinfo

Userinfo endpoint

Auth: OIDCAccessToken

The claims of the granted scopes, and revoked_links when the person shared entries:

{ "revoked_links": { "endpoint": "https://<domain>/api/grants/resolve",
    "grants": [ { "id": "…", "token": "…", "keys": ["shipping_address"] } ] } }

The service reads the values with POST /api/grants/resolve, as often as it needs them, for as long as the person does not revoke the grant. The grant token is delivered here only, never in the ID token.

Responses

Status Meaning
200 The claims.
401 invalid_token.
429 Too many attempts. Password gates, probes and challenges are limited per client, so a slug cannot be brute-forced.

POST /oidc/userinfo

Userinfo endpoint (POST)

Auth: OIDCAccessToken

The same as the GET form.

Responses

Status Meaning
200 The claims.
401 invalid_token.