Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made AuthMembership, Group, permission customizable through Auth #466

Merged
merged 4 commits into from
Aug 20, 2023

Conversation

SvenKeimpema
Copy link
Contributor

fix: exposed models in emmett/tools/auth/init.py and made membership, group and permission model customizable.

this is done by adding auth membership, group, permission to use_database and adding _set_model_config

…hip, group and permission model customizable.
Copy link
Member

@gi0baro gi0baro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution.
I made some notes to the code you proposed.

Also, I would like to have updated docs for this (see https://github.com/emmett-framework/emmett/blob/master/docs/auth.md)

emmett/tools/auth/ext.py Outdated Show resolved Hide resolved
emmett/tools/auth/apis.py Outdated Show resolved Hide resolved
SvenKeimpema and others added 2 commits June 29, 2023 14:29
stricter issubclass check

Co-authored-by: Giovanni Barillari <g@baro.dev>
fix: changed order of membership, group and permission to group, membership and permission
@SvenKeimpema SvenKeimpema requested a review from gi0baro June 29, 2023 12:35
added changes to documentation
@SvenKeimpema
Copy link
Contributor Author

@gi0baro all of the requested changes should have been, tell me if you need any other changes to be made

@gi0baro gi0baro merged commit dd1327b into emmett-framework:master Aug 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants