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

Add support for custom functions for getting user object from user_id and vice versa #135

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

SPKorhonen
Copy link

This pull request adds support for settings defined custom functions for extracting the user_id value from user object as well as instantiation of user object based on the user_id from token.

These functions allow custom formatting and/or encoding of user claim in token as well as support for custom user models including using multiple user models, etc.

The default value of None provided for the new settings do not change the behaviour of the library, thus this change is transparent unless new settings are specified.

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.

1 participant