Re: Django authentication using phone number

2015-09-17 Thread Rafael E. Ferrero
https://docs.djangoproject.com/en/1.8/topics/auth/customizing/

--
Rafael E. Ferrero

2015-09-17 2:31 GMT-03:00 Ravi Chityala :

> I am looking for an django app to do authentication and authorization
> using phone number. Apps like django-registration can use email address or
> user name for authentication but my requirements are different. I used all
> my googlefu but could not find a single django app that does it. Does
> anybody have any idea?  The functionality I am looking for are listed below
>
> TL;DR - Need a django app where phone number is the user name. Password is
> created by django and text message is sent to user. Need to create a django
> user object when logging.
>
> Complete detail:
>
>1. The user enters name, phone number and few other details. A text
>message needs to be sent using Twilio with a 5 digit randomly generated
>code.  The code needs to be hashed and stored in the database. The message
>sending can be abstracted, so that other services can also be used.
>2. The user will use the code to login. The hashed version of the
>entered code is compared to the one stored in the database. If they match,
>the user will be allowed to login.
>3. If the user wants to reset the code, a new code needs to be
>generated and sent. The new code will be hashed and stored in the database.
>4. When the user is authenticated, a user object needs to be created,
>so that I can use the request.user object for authorization.
>5. This authentication mechanism preferably should work with
>django-rest-framework or tasty pie.
>
> --
> 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-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/69314e3c-9215-4e94-87a9-044568e96f0c%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJJc_8VLWrUP6ys_nd-68tw%3Dorkyieg-Fws8X2fOjjMmqSMq6w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Django authentication using phone number

2015-09-17 Thread Ravi Chityala
 I am looking for an django app to do authentication and authorization 
using phone number. Apps like django-registration can use email address or 
user name for authentication but my requirements are different. I used all 
my googlefu but could not find a single django app that does it. Does 
anybody have any idea?  The functionality I am looking for are listed below 

TL;DR - Need a django app where phone number is the user name. Password is 
created by django and text message is sent to user. Need to create a django 
user object when logging. 

Complete detail:

   1. The user enters name, phone number and few other details. A text 
   message needs to be sent using Twilio with a 5 digit randomly generated 
   code.  The code needs to be hashed and stored in the database. The message 
   sending can be abstracted, so that other services can also be used.
   2. The user will use the code to login. The hashed version of the 
   entered code is compared to the one stored in the database. If they match, 
   the user will be allowed to login.
   3. If the user wants to reset the code, a new code needs to be generated 
   and sent. The new code will be hashed and stored in the database.
   4. When the user is authenticated, a user object needs to be created, so 
   that I can use the request.user object for authorization. 
   5. This authentication mechanism preferably should work with 
   django-rest-framework or tasty pie.

-- 
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-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/69314e3c-9215-4e94-87a9-044568e96f0c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.