Skip to main content

Module api_keys

Module api_keys 

Source
Expand description

The served workspace’s API keys (#364): the HTTP layer’s verifier.

The keys live in the workspace (<root>/.<app>/api_keys/, see sapphire_framework_keys::store_dir), so they sync with it and no bridge is asked.

Structs§

ImportReport
What an import did.
WorkspaceKeyVerifier
Checks tokens against the keys of the workspace this application serves.

Constants§

IMPORTED_MARKER
The marker in the application’s data directory that says this host has imported.

Functions§

import_external_devices
Copy the unretired external devices that may use app_name, from every workgroup in bridge_dir, into the API keys of the workspace at root, keeping their ids and hashes; then write IMPORTED_MARKER into data_dir. Does nothing when the marker is there.