djangorestframework-auth0 icon indicating copy to clipboard operation
djangorestframework-auth0 copied to clipboard

Custom User Model Support for better handling the Auth0 user_id

Open techdragon opened this issue 8 years ago • 8 comments

Currently the user_id has the pipe character replaced with a dot. This is necessary due to the limitations of the default Django user model.

If someone wants to or already has a custom user model that does support the pipe character in the username field, we should have a way to disable the pipe character rewriting.

techdragon avatar May 10 '17 07:05 techdragon

Sorry for the late answer, i agree, if someone could work on it it would be appreciated. I would although only will can in few weeks

mcueto avatar Jun 16 '17 19:06 mcueto

Hi techdragon, i will solve this issue in the following week, stay tuned! :)

mcueto avatar Jul 14 '17 19:07 mcueto

I made a PR #36 allowing to optionally replace the pipes for dots by configuring it in the settings.

nmartinezb3 avatar Sep 18 '17 13:09 nmartinezb3

@0maxxam0 funded this issue with $6. Visit this issue on Issuehunt

IssueHuntBot avatar Jul 23 '18 10:07 IssueHuntBot

@ihackpy has started working. Visit this issue on Issuehunt

IssueHuntBot avatar Sep 18 '18 16:09 IssueHuntBot

I fixed this by building my own library that you might consider https://github.com/techdragon/django-auth0-user and it already has this feature. Its based on python-social-auth's existing OpenID Connect support but I've provided extensive helpers around making it simple to use Auth0.

techdragon avatar Sep 27 '18 05:09 techdragon

Hi @techdragon im reactivating the development process of this package so i will try yours in order to inspire in how we could improve both packages.

mcueto avatar Apr 22 '19 22:04 mcueto

@mcueto @techdragon doesn't the package "django-auth0-user" worked??

lokesh1729 avatar Jul 17 '19 08:07 lokesh1729