mcueto / djangorestframework-auth0

Library to simply use Auth0 token authentication in DRF within djangorestframework-jwt
MIT License
91 stars 19 forks source link

Optionally replace pipes for dots in auth0 username #36

Closed nmartinezb3 closed 5 years ago

nmartinezb3 commented 7 years ago

With the dot instead of the pipe, the usernames in my backend are inconsistent with the usernames in auth0, so if I need to change some user info in auth0 from my backend, I must replace again the dots for pipes.

This can be configurable with the settings var REPLACE_PIPE_FOR_DOTS_IN_USERNAME, which is True by default.

zulrang commented 6 years ago

How do you handle the fact that pipes are an illegal character in Django usernames?

nmartinezb3 commented 6 years ago

I don't handle it, it just works. Django allow you to set by code a username with a pipe.