Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
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...
3
Long story.....
https://www.flickr.com/photos/arctia/14485645868/in/set-72157632729016111
More : https://news.ycombinato...
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
zombies
http://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...
13
Let's do it with Django
It takes only 3 steps to integrate Social
Authentication with your web project.
For this Demo I...
14
Step - 1
Create an app with your backend
15
16
17
Step - 2
Configure your Django application
to use Social Authentication
18
More : 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
Upcoming SlideShare
Loading in …5
×

Never build a login again - The art of using social Auth using Django

917 views

Published on

These are the slides from my talk "Never build a login again - The art of using social Auth with Django".

You can find the demo project for the same here - https://github.com/nikunjness/Django-art-of-Oauth

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Never build a login again - The art of using social Auth using Django

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

×