GithubHelp home page GithubHelp logo

orygens / django-twitterauth Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mmalone/django-twitterauth

1.0 1.0 0.0 237 KB

Use Twitter for authentication in Django

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

Python 100.00%

django-twitterauth's Introduction

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'
		
	And will need to add also into settings.py the django backends 
	configuration:
	
		AUTHENTICATION_BACKENDS = ('twitterauth.backends.TwitterBackend',)

	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 <[email protected]>

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/>

django-twitterauth's People

Contributors

rcrowley avatar rafaelcaricio avatar mmalone avatar adonescunha avatar eduardovg88 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.