Skip to main content

Module join

Module join 

Source
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.
ApprovalRule
Joining people whose verified token carries value in claim get role.
JoinOutcome
One request and what became of it.
JoinRequest
A pending join request as the server lists it. Nothing in it is trusted until checked.
JoinScope
Where the requests must have signed in (the issuer and the audience the owner pinned), and the cache they ask to join.

Enums§

JoinDecision
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 keys for issuer and the audience the owner pinned, the sign-in is at most MAX_SIGN_IN_AGE_SECS old, and its nonce binds this descriptor to this cache. Every refusal is a short reason.
join_nonce
The join nonce of descriptor for 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_request in scope. A verified device is admitted with the role the owner chose for its request id, else the role of the first rule its token matches; else it waits. Only developer and reader are ever admitted. A device already in members counts as approved and is not added again. At most MAX_PER_PASS requests are read.