django - Preconfigured REST API including authentication -


i android developer. every time want create app, need kind of backend it. in 99% of cases there's user registration envolved. wonder myself, if there isn't there presetup django project somewhere, user registration stuff preconfigured allready? can checkout project, add models, add visibility (in terms of "available registrated users", "available admins", a.s.o) , project go?!

with userregistration mean:

  • a user can register via rest interface, receives email confirming
  • a user can login (tokenbased authentication) after confirmed email
  • a user can reset email/password

i tried something that myself, on points it's working bit unexpected. (for not familar openshift, django project in wsgi folder, called restapi)

i tried setting using this docs. changed bit here , there, contains main functionality want.

checkout project using develop branch (since using git-flow)

here behaviour:

  • registration: email sent/displayed. when clicking on email confirmation link opens white web page button confirm. fine far, except login redirect url, setup, not redirect there.

settings.py:

login_redirect_url = 'https://github.com/unic8' 
  • login works expected returns valid token
  • reset password unauthorized via email: kind of working well, except base-url, used build validation link taken 1 setup in admin interface "sites". after logged this, , changed "example.com" "127.0.0.1:8000" building correct well. don't me wrong. not wrong behaviour, expected django/plugins, themselfes, since validation of email on registering doing well.

could me, getting rid of confusions? maybe exists , blind find it?

generaly :

  1. everyone makes it's own integration of auth services, (as you're used do) or
  2. use facebook / google services, or
  3. use stormpath provider integration django: djongo stomrpath : https://github.com/stormpath/stormpath-django https://stormpath.com/

(ps: i'm not stormpath comercial ... :) ) enjoy


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -