PerFact API - SQLAlchemy models for the app namespace
Project description
perfact-api-app-model
SQLAlchemy models for the app namespace — the authentication and authorization tables used by perfact-api-main. Part of the perfact.api.app.model namespace.
Models
| Class | Table | Purpose |
|---|---|---|
AppUser |
appuser |
User accounts |
AppUserKey |
appuserkey |
API keys belonging to a user |
AppUserLogin |
appuserlogin |
Active login sessions (cookie tracking) |
AppGroup |
appgroup |
Groups, each carrying a Zope role name |
AppPerm |
appperm |
Named permissions |
AppStc |
appstc |
Organisational scope tree (hierarchical) |
AppUserXPerm |
appuserxperm |
User ↔ permission assignments |
AppUserXStc |
appuserxstc |
User ↔ scope assignments |
AppPermXGroup |
apppermxgroup |
Permission ↔ group assignments |
AppPermXStc |
apppermxstc |
Permission ↔ scope assignments |
AppStc_Paths |
appstc_paths (view) |
Materialised ancestor paths for the scope tree |
How the permission model works
A user is granted access to a scope (AppStc) via AppUserXStc. Within that scope, a user has permissions (AppPerm) via AppUserXPerm. Each permission can be linked to one or more groups (AppGroup), and each group carries a Zope role name. The effective roles for a user in a given scope are resolved by walking the AppStc_Paths view upward through the scope hierarchy.
Dependencies
perfact-api-base-modelsqlalchemypsycopg[c]pydantic-settings
Maintainers
- Viktor Dick viktor.dick@perfact.de
- Alexander Rolfes alexander.rolfes@perfact.de
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file perfact_api_app_model-0.3.tar.gz.
File metadata
- Download URL: perfact_api_app_model-0.3.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
896ea89cb0c79f5de12dc77b10eeb26ae579f2b39f7dd279b1e490fdef3bd712
|
|
| MD5 |
3b6b7f5a6dc55b4a55ddb52bd343eeaa
|
|
| BLAKE2b-256 |
a98ff9a8f2b6eddf3fc86c83a2b169526746c0befffc0945550d011fb5527214
|
File details
Details for the file perfact_api_app_model-0.3-py2.py3-none-any.whl.
File metadata
- Download URL: perfact_api_app_model-0.3-py2.py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c17c16ce118dd24331f57ec8f755d856bbfc1bfe415838c9c95215e9be48df2b
|
|
| MD5 |
a513cbbec397f6c2823617356aa36437
|
|
| BLAKE2b-256 |
75d13e36d1c7cc05caef98791dbc07651bd5d5cd859de6ef25e26cd86b9181c5
|