You need one login for two different sites

I have been tasked with creating a website using Django. This will be the sister site of the existing Plone site. The same Apache instance will be the front end sites which allows me to use the same domain name.

However, owners want users to be able to sign in to one and still sign in to the other.

How can I do that?

Thanks!:)

+2


a source to share


5 answers


Gut's reaction is to use OAuth - see How to create secure peer-to-peer Django between different sites?



Alternatively, have you tried this one-off app - http://code.google.com/p/django-sso/ ?

+1


a source


Also check out Django documentation on how to implement your own authorization server at http://docs.djangoproject.com/en/dev/topics/auth/#writing-an-authentication-backend



0


a source


My gut reaction is to use LDAP. Plone LDAP support is a bit rough, but it works. Does Django have equivalent or better LDAP support? If so, then I think you are off and running ...

0


a source


You can transfer authentication to SQLPASPlugin and use the same table for Django and Plone.

0


a source


There are two problems here, general login and single login. LDAP or SQL log servers will give you the former, but you still have to enter the password on both sites. You need to have one login to login via bpth.

plone.session 3.0 (part of Plone 4, but compatible with Plone 3.3 if you also add hashlib to your build) is compatible with Apache mod_auth_tkt one entry. This should be simple enough to configure Django to use Apache Authentication, or if you are not using Apache, wrap plone.session tktauth.py in a simple wsgi wrapper. Use Plone's site require_login script like TKTAuthLoginURL.

0


a source







All Articles