Module user

Source
Expand description

User management: creation, deletion, login, metadata. This tries to lock the user during write operations so it won’t end up in inconsistent states, etc. but that doesn’t currently seem to work reliably.

Modules§

auth

Structs§

NameAndIdLock
User
UserLocalConfig
UserPublicInfo

Constants§

TEST_USER_PASS
TEST_USER_PHC
USER_LOCK 🔒
USER_NAME_LOCK 🔒
USER_PUBLIC_INFO_LOCK 🔒

Functions§

ensure_base_layout 🔒
get_all_user_ids
get_user_id_by_name 🔒
get_user_kek_params_by_id 🔒
get_user_password_by_id 🔒
get_user_picture_by_id 🔒
get_user_pubkey_by_id 🔒
get_user_wrapped_dek_by_id 🔒
lock_by_id
lock_by_name
next_user_id 🔒
Returns the next available user ID, guaranteed to be monotonically increasing and never reused. Uses a persistent file to store the last allocated user ID.
read_json_map 🔒
write_json_map 🔒