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

Custom user model #37

Open
marten-cz opened this issue Sep 25, 2017 · 2 comments
Open

Custom user model #37

marten-cz opened this issue Sep 25, 2017 · 2 comments

Comments

@marten-cz
Copy link
Contributor

Is there any easy way to use different User model for this extension? I would like to use contrib.user for django application and my own .user model just for Auth0 users.

Do you have some idea how to do that? It will be nice to have option to map Auth0 json data to table columns as well.

@mcueto
Copy link
Owner

mcueto commented Apr 22, 2019

A get_user_model() call is used on https://github.com/mcueto/djangorestframework-auth0/blob/master/rest_framework_auth0/authentication.py#L67 to refer to User model, so a custom one can be set if needed. By the way i will test it before close this issue.

Let me know if you tested it

@mcueto
Copy link
Owner

mcueto commented Apr 22, 2019

I suppose the custom user must implement some of the standard User model to be compatible BTW

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

No branches or pull requests

2 participants