aaronn / django-rest-framework-passwordless

Passwordless Auth for Django REST Framework
MIT License
717 stars 156 forks source link

Introduce a way to override how auth tokens are created #21

Closed aleffert closed 4 years ago

aleffert commented 5 years ago

This creates a new setting PASSWORDLESS_AUTH_TOKEN_CREATOR. This is a string representing the function used to construct an authentication token after receiving a valid passwordless token.

Notes: It was not obvious to me how to run the tests, so I did not write tests. Happy to do so with some instructions.

aleffert commented 4 years ago

Hi, I totally lost track of this for various reasons. But just went to go take a look at it. I rebased against master, figured out how to run the tests, and fixed the tests that I broke and added one for this change. It sounds like there's some interest in landing this beyond me so would be great to get it in

aaronn commented 4 years ago

Looking at it now.

aleffert commented 4 years ago

Thanks!