tiny_pacs_identity.events
User management events.
The events are handled by the Users
component. Passwords travel as plaintext payloads only within the process
(and are prompted with getpass in the CLI, never passed as command
line arguments); handlers hash them before they reach the database.
Classes
|
Register a new user. |
Request a user by login name. |
|
|
Request every user, ordered by username. |
Remove a user by login name. |
|
Activate or deactivate a user. |
|
Change the password of an existing user. |
- class tiny_pacs_identity.events.UserByName[source]
Bases:
Event[str,UserModel|None]Request a user by login name.
The result is None for unknown usernames.
- class tiny_pacs_identity.events.UserList[source]
Bases:
Event[None,list[UserModel]]Request every user, ordered by username.
Password hashes are never included in CLI output; event consumers receive the records as stored.
- class tiny_pacs_identity.events.UserAdd[source]
Bases:
Event[dict[str,Any],UserModel]Register a new user.
Payload is a mapping with
usernameandpassword; the password is hashed before storage.
- class tiny_pacs_identity.events.UserSetPassword[source]
Bases:
Event[dict[str,Any],UserModel]Change the password of an existing user.
Payload is a mapping with
usernameandpassword.