-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow additional models customisation in
Auth.use_database
(#466)
* fix: exposed models in emmett/tools/auth/__init__.py and made membership, group and permission model customizable. * Update emmett/tools/auth/ext.py stricter issubclass check Co-authored-by: Giovanni Barillari <g@baro.dev> * Update apis.py fix: changed order of membership, group and permission to group, membership and permission * Update auth.md added changes to documentation --------- Co-authored-by: Giovanni Barillari <g@baro.dev>
- Loading branch information
1 parent
96f4e45
commit dd1327b
Showing
4 changed files
with
56 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
from .apis import Auth | ||
from .models import AuthUser | ||
from .models import AuthUser, AuthMembership, AuthGroup, AuthPermission |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters