django-rest-framework-passwordless
django-rest-framework-passwordless copied to clipboard
Passwordless Auth for Django REST Framework
Need tests to verify that VERIFY (`CallbackToken.TOKEN_TYPE_VERIFY`) and AUTH (`CallbackToken.TOKEN_TYPE_AUTH`) tokens cannot be used interchangeably.
If you override `PASSWORDLESS_USER_MOBILE_FIELD_NAME` from the `mobile` default, the API serializer is not aware and will fail on validate. https://github.com/aaronn/django-rest-framework-passwordless/blob/dcf520fc29d7a2af2d366b80e5af0f7753c8ab20/drfpasswordless/serializers.py#L54 The serializer should use `PASSWORDLESS_USER_MOBILE_FIELD_NAME` for: - querying against User...
The messages that are sent should be in the user's language, which can be derived from for instance the HTTP request headers.
I think this project would benefit from the ability to send in the 6 digit token OR to send in a URL to the email or phone number provided to...
In many environments a user with same email/mobile can be deleted and created again, changing its `pk`. So adding two new settings `PASSWORDLESS_DEMO_USERS_EMAIL` and `PASSWORDLESS_DEMO_USERS_MOBILE` to map the email and...
In `utils.py`, the coded import is `from rest_framework.authtoken.models import Token` But in the settings, if the DEFAULT_AUTHENTICATION_CLASSES is overwritten by any other classes other than the REST_FRAMEWORK default TokenAuthentication, then...
Adds support for using code in email subject line like this: ``` 'PASSWORDLESS_EMAIL_SUBJECT': "Your temporary Passwordless login code is %s", ```
Hi, I found an issue or maybe I don't understand how demo user works (which would also be no surprise, because there's no detailed documentation about it). So after I...
'PASSWORDLESS_DEMO_USERS': {}
PASSWORDLESS_USER_EMAIL_FIELD_NAME and PASSWORDLESS_USER_MOBILE_FIELD_NAME had no effect. This bug fix provides devided user field type for serializers and validators