2

First of all, Happy New Year to all the craftsmen, hackers, programmers, electronic wizards etc ! I have a question in regard to authentication & authorization of a web mobile app(angularjs + phonegap) & a backend service(rest - django/tastypie). How can I create or authorize a user(using facebook, twitter) with/in the django/tastypie backend ?

Any ideas? I read all other post in regard to this "issue", but I could not find a proper way to do this. Any suggestions, help, advice would be welcomed !

Thank you very much !

bsd
  • 1,207
  • 4
  • 15
  • 28

1 Answers1

4

You need to implement OAuth in your system. Two way you can have this

To implement with Django and Tasty try this

Or to implement with JavaScript try this

I would go with Django and Tasty.

Community
  • 1
  • 1
Tasnim Reza
  • 6,058
  • 3
  • 25
  • 30
  • Ok, I've implemented OAuth2. How can I use facebook connect ? – bsd Jan 29 '14 at 21:35
  • A little bit more details, please ! – bsd Feb 11 '14 at 19:32
  • I don't know exactly, how can I achieve the following: I open the mobile app(phonegap), login in with facebook, and after this step, I want an account to be created on the server(django + tastypie) with the fb data of that user. If that user already has an account, then it's ok, move further in the mobile app. Thank you very much ! – bsd Feb 11 '14 at 19:49