Skip to main content

Module server

Module server 

Source

Structs§

AccessToken
AuditEntry
One row of the audit log; details never hold token values or codes.
AuditPage
AuditQuery
Which audit entries to list: before is the next cursor of the previous page.
DeviceRequest
What a member sees before approving a command-line sign-in.
Invite
Member
MemberTokenRevoke
POST /api/v1/members/tokens/revoke: an admin revokes a member’s token, or all with no id.
NewService
POST /api/v1/members/service: create a service account.
SecretInfo
A secret’s state for the UI; its value never leaves the server.
ServiceTokenRequest
POST /api/v1/members/service/token: a token for a service account.

Enums§

DevicePoll
Where a command-line sign-in stands.
Role
What someone may do, each role including the ones below it.
SignIn
A way to sign in: an emailed link, a code, or an OpenID Connect provider; a server offers one or more, each for invited people only.
Via
How a request proved who it is.

Constants§

SERVICE_DOMAIN
Service accounts are members at this reserved domain, which no mailbox or identity provider has.
TOKEN_DAYS
How long a token lasts unless chosen otherwise, and a command-line sign-in’s always.

Functions§

service_email
The member address of service account name: lowercase letters, digits and dashes, 1-40.
service_handle
The handle a display name gives: “Build Bot 2” → build-bot-2.
service_name
The service account’s name, when email is one.