Upload
nikunjness
View
450
Download
0
Tags:
Embed Size (px)
Citation preview
1
Never build a login again: The art of using social auth with
Django
- Nikunj Thakkar
2
Who am I?
● Jr. Programmer Analyst @IshiSystems● Co-organizer @JavaMeetup● Core Team member @GBGAhmedabad● More : www.nikunjthakkar.com● @nikunjness
3
Long story.....
https://www.flickr.com/photos/arctia/14485645868/in/set-72157632729016111
More : https://news.ycombinator.com/item?id=4603204and
http://stackoverflow.com/questions/549/the-definitive-guide-to-form-based-website-authentication
4
We believe in
Code Re-use
https://www.flickr.com/photos/110751683@N02/13334080323/in/photostream/
5
Agility
We believe in
https://www.flickr.com/photos/vfsdigitaldesign/5396691102
6
We believe in
Rapid development
https://www.flickr.com/photos/katiekrueger/2351656805
7
We believe in
Mobile-first
https://www.flickr.com/photos/aakashgautam/8497909263
8
Our customers
are not
zombieshttp://notbuyinganything.blogspot.in/2012/10/scary-halloween-spending-turning-us.html
And....
9
And....
People trusts giants and so do we
10
Let's see how to do it
11
Wait...First tell me which backend to use and why??
12
No rules but lots of Common sense
➢ Millions of Users Vs. Targated Clients
➢ Personal Vs. Professional Vs. Social
➢ Web first Vs. Mobile first
13
Let's do it with Django
It takes only 3 steps to integrate Social Authentication with your web project.
For this Demo I am using Twitter as a backend but you can pick backend of your choice.
14
Step - 1
Create an app with your backend
15
16
17
Step - 2
Configure your Django application to use Social Authentication
18More : http://python-social-auth.readthedocs.org/en/latest/index.html
19
Step - 3
In your login.html put
<a id="login" href="{% url 'social:begin' 'twitter' %}?next=/">Login with Twitter</a>
20
Bonus Step
https://github.com/nikunjness/Django-art-of-Oauth
21
Let's see it running....
22
23
Thank you!
24
Resources
Fonts : http://www.awwwards.com/100-greatest-free-fonts-collection.html