Re: DRF JWT Token with Mobile

2017-12-29 Thread Avraham Serour
instead of: curl -X POST -d "mobile=1234567890" http://localhost:8000/api-token-auth/ could you just use: curl -X POST -d "username=1234567890" http://localhost:8000/api-token-auth/ In any case what's the use case here? This doesn't seem secure at all, to log in someone only using the username, e

Re: DRF JWT Token with Mobile

2017-12-28 Thread Andréas Kühne
Hi, You will have to implement your own authentication backend to make that work. See here for an example: https://chrisbartos.com/articles/how-to-implement-custom-authentication-with-django-rest-framework/ Regards, Andréas 2017-12-29 5:25 GMT+01:00 Mukul Mantosh : > Django Rest Framework JWT

Re: DRF JWT Token with Mobile

2017-12-28 Thread Mukul Mantosh
Django Rest Framework JWT (http://getblimp.github.io/django-rest-framework-jwt/) as specified that JWT token can be obtained by passing username and password. Example: $ curl -X POST -d "username=admin&password=password123" http://localhost: 8000/api-token-auth/ How to obtain the JWT Token usin

Re: DRF JWT Token with Mobile

2017-12-28 Thread Krishnasagar Subhedarpage
Can you elaborate question? Please add some background for it. --- Krishnasagar On Thu, Dec 28, 2017 at 1:40 PM, Mukul Mantosh wrote: > How to get JWT Token in DRF using only mobile number as the parameter > instead of email and password.. > > -- > You received this message because you are sub

DRF JWT Token with Mobile

2017-12-28 Thread Mukul Mantosh
How to get JWT Token in DRF using only mobile number as the parameter instead of email and password.. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-use