github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

rcrowley / django-twitterauth

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 52
    • 3
  • Source
  • Commits
  • Network (3)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Use Twitter for authentication in Django — Read more

  cancel

http://rcrowley.org/2009/01/24/django-twitterauth

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Major refactor, allowing even more functionality to be integrated into the 
User model. 
rcrowley (author)
Sun May 24 14:50:00 -0700 2009
commit  dd16f1fa419a76288eee0f589f79469bf27eb162
tree    1647027e555486c815be477e39e60f73c98bdf5a
parent  58284ec7be5bfa2420ab7cc552ec3fdcfe8b23b2
django-twitterauth /
name age
history
message
file .gitignore Sun Dec 07 14:27:41 -0800 2008 Initial import [rcrowley]
file README Mon Apr 13 23:54:21 -0700 2009 Updated to use OAuth [rcrowley]
file __init__.py Sun Dec 07 14:27:41 -0800 2008 Initial import [rcrowley]
file decorators.py Sun May 24 14:50:00 -0700 2009 Major refactor, allowing even more functionalit... [rcrowley]
file models.py Sun May 24 14:50:00 -0700 2009 Major refactor, allowing even more functionalit... [rcrowley]
directory templates/ Mon Apr 13 23:54:21 -0700 2009 Updated to use OAuth [rcrowley]
file utils.py Sun May 24 14:50:00 -0700 2009 Major refactor, allowing even more functionalit... [rcrowley]
file views.py Sun May 24 14:50:00 -0700 2009 Major refactor, allowing even more functionalit... [rcrowley]
README
NAME
  Django Twitter Auth -- use Twitter for authentication in Django

SYNOPSIS

DESCRIPTION
  Twitter now supports OAuth, so django-twitterauth has been rewritten
  to support this better authentication flow.  It is well documented
  elsewhere so I will not be going into detail here.

  The app supplies views to handle the login flow, a user info page
  and a *basic* User model.

  Mad props to Henrik Lied for the initial Django implementation of
  Twitter OAuth.  I used his utils.py file almost verbatim in creating
  this app.

INSTALLATION
  Clone/download and place in the root of your Django project:

    $ cd $YOUR_DJANGO_PROJECT
    $ git clone git://github.com/rcrowley/django-twitterauth.git auth
    $ echo auth >> .gitignore

  You'll need to add this app to your settings.py file in the
  INSTALLED_APPS section.  You'll also need these two extra lines:

    TWITTERAUTH_KEY = 'OH HAI'
    TWITTERAUTH_SECRET = 'OH NOES'

  Setup the URLs for the auth app.  The names of the URLs are required.
  For example:

    url(r'^info/?$', 'auth.views.info', name='auth_info'),
    url(r'^login/?$', 'auth.views.login', name='auth_login'),
    url(r'^login/callback/?$', 'auth.views.callback', name='auth_callback'),
    url(r'^logout/?$', 'auth.views.logout', name='auth_logout'),

  Again, the names of the URLs are required.  I chose not to create
  auth/urls.py because URLs like /auth/login et cetera seems awful.

  Make sure to run `python manage.py syncdb` to create the User model.

DEPENDENCIES
  Python 2.5 <http://python.org/>
  Django 1.0.2 <http://djangoproject.com/>
  Simple JSON <http://pypi.python.org/pypi/simplejson>
  Python OAuth <http://oauth.googlecode.com/svn/code/python/oauth/>

VERSION
  0.3

DATE
  2009-04-13

AUTHOR
  Richard Crowley <r@rcrowley.org>

SEE ALSO
  <http://github.com/henriklied/django-twitter-oauth>

LICENSE
  This work is licensed under a Creative Commons
  Attribution-Share Alike 3.0 Unported License
  <http://creativecommons.org/licenses/by-sa/3.0/>
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server