Expand description
Join requests: the nonce that binds a device to a sign-in, and an owner’s own check of it.
Structs§
- Admissions
- What an approval pass decided: the outcomes, and the members to add in one roster version.
- Approval
Rule - Joining people whose verified token carries
valueinclaimgetrole. - Join
Outcome - One request and what became of it.
- Join
Request - A pending join request as the server lists it. Nothing in it is trusted until checked.
- Join
Scope - Where the requests must have signed in (the issuer and the audience the owner pinned), and the cache they ask to join.
Enums§
- Join
Decision - What a pass did with one request.
Constants§
- MAX_
PER_ PASS - Requests decided in one pass at most.
- MAX_
SIGN_ IN_ AGE_ SECS - Oldest sign-in a join request may rest on, in seconds.
Functions§
- check_
join_ request - Checks a join request without trusting the server that relayed it: the descriptor parses,
the ID token verifies against
keysforissuerand theaudiencethe owner pinned, the sign-in is at mostMAX_SIGN_IN_AGE_SECSold, and itsnoncebinds this descriptor to this cache. Every refusal is a short reason. - join_
nonce - The join nonce of
descriptorfor the cache: hex BLAKE3 of the domain, the cache id’s bytes and the descriptor text. - plan_
admissions - Decides each request on its own proof: it must pass
check_join_requestinscope. A verified device is admitted with the role the ownerchosefor its request id, else the role of the first rule its token matches; else it waits. Onlydeveloperandreaderare ever admitted. A device already inmemberscounts as approved and is not added again. At mostMAX_PER_PASSrequests are read.