Skip to main content

Module enrollment

Module enrollment 

Source
Expand description

Enrolling this device as a trusted one: ask the server to start an enrollment, wait for the user to approve it on an enrolled device, then take the credentials that device shares.

The UI drives the enrollment through an SsoEnrollmentContext, which shows the progress, asks for the verification code and can cancel at any point.

Enumsยง

ServerStatus ๐Ÿ”’
What the server reports about an enrollment.
Stop ๐Ÿ”’
Why an enrollment ended early. It also decides what end_enrollment reports.

Functionsยง

cancel_enrollment ๐Ÿ”’
Tells the server to drop the enrollment, so the enrolled devices stop waiting on it. Errors are ignored: there is nothing left to do about them.
enroll ๐Ÿ”’
The steps of the enrollment. The uuid goes to started as soon as the server hands it out, for the caller to cancel the enrollment should this be dropped halfway.
enroll_device ๐Ÿ”’
Enrolls this device and returns the credential bundle an enrolled device shared.
get_enrollment_status ๐Ÿ”’
Reads the status of the enrollment.
poll_status_until_done ๐Ÿ”’
Polls the status until it is one not in ignore.
start_enrollment ๐Ÿ”’
Starts an enrollment and returns its uuid.
unknown_status ๐Ÿ”’
A status that nothing expects at this point.
valid_status ๐Ÿ”’
Denial ends the enrollment, any other status is up to the caller.