What's new? | Help | Directory | Sign in
Google
django-authopenid
django application to integrate django authentification system with openid
  
  
  
  
    
Search
for
Updated Apr 10, 2008 by bchesneau
Labels: Phase-Deploy, Featured
README  
readme file

Introduction

Django authentification application to with openid using django auth contrib/.

This application allow a user to connect to you website with :

Idee is having ma.gnolia workflow to integrate openid and legacy authentification.

If the user connect with an openid he could associate it with its legaccy account or just create a new django account. When the user is connected you could manage him like you usually do with auth contrib :

http://www.djangoproject.com/documentation/authentication/

This application also provide view to :

Requirements

Set your django project

To use django_authopenid add ''django_authopenid.middleware.OpenIDMiddleware' to MIDDLEWARE_CLASSES and

'django_authopenid',

to INSTALLED_APP.

then add django_authopeid.urls to urls.py, for example :

(r'^account/', include('django_authopenid.urls')),

so all django_authopenid view will be available under account/ path.

Set also your LOGIN_URL in settings.py to something like this:

ugettext = lambda s: s
LOGIN_URL = '/%s%s' % (ugettext('account/'), ugettext('signin/'))

To install tables, run :

python manage.py syncdb

Use it

urls

all code is documented so you could esayly know what do a view.

templates

Templates are in templates/authopenid folder :


Comment by fabrix.xm, Jan 18, 2008

I think "To use django_authopenid add ''django_openidconsumer.middleware.OpenIDMiddleware' to MIDDLEWARE_CLASSES" should read "To use django_authopenid add ''django_authopenid.middleware.OpenIDMiddleware' to MIDDLEWARE_CLASSES"

Comment by bchesneau, Jan 23, 2008

indeed :) Thanks.

Comment by atregoubenko, Jan 27, 2008

Could you also add ./manage.py syncdb step to 'Set your django project' section for newbies like me? : ) I've just lost an hour of my life because of that.

Comment by evan.reiser, Jan 29, 2008

Definately add python manage.py syncdb,

also some people (like me) might not have elementtree installed, might want to mention this

apt-get install python-elementtree

fixed it for me

Comment by manthios, Feb 15, 2008

Just for the sake of completeness :)

You must have a template named "base.html" in one of your template directories - I presume, that author has the directory .../django/django/contrib/admin/templates/admin/ already included in TEMPLATE_DIRS, but this is not the default (as far as django's trunk #7120 is concerned).

Comment by fccoelho, Feb 29, 2008

can't access any url below account, e.g. /account/signin/

Comment by fccoelho, Feb 29, 2008

where should LOGIN_URL be set? at settings.py?

Comment by leidel, Mar 18, 2008

I've got a problem with sending signup emails.

http://code.google.com/p/django-authopenid/issues/detail?id=10

Comment by bchesneau, Mar 24, 2008

@fccoelo LOGIN_URL should be set in settings.py, yeah @leidel fixed in trunk

Comment by bchesneau, Mar 24, 2008

@evan.reiser done, thanks

Comment by grtodd, Apr 04, 2008

is there a django based openid provider out there?

Comment by treborhudson, May 27, 2008

If we also wanted django-registration support, how would this factor in? Has anybody done that?


Sign in to add a comment