Autenticate against another Joomla install?

Discussion and education for beginner / novice programmers interested in embarking on the development process to take advantage of the extensible nature of the Joomla! CMS.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Forum rules
Post Reply
User avatar
deepthoughts
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Tue Sep 27, 2005 1:12 pm
Location: The northern part of Sweden (Piteå)

Autenticate against another Joomla install?

Post by deepthoughts » Tue Nov 20, 2007 2:04 pm

Now that Joomla 1.5 has the wonderful plugin architecture wouldn't it be possible to create a plugin (or a set of plugins) that authenticates against another Joomla installation? The ideal situation would be that you could turn of user registration on all sites except the "master site" and yet have Community Builder working (could it be so that the plugin needs to insert the users into the site that has no registration for this to work?).

SSO for all your Joomla sites would also be a great feature but I don't know if it's doable.

Is all this possible? Would this kind of authentication (and user?) plugin be difficult to create? Could you use Joomlas default authentication and user plugins as a starting point?
Stefan Nitsche
stefan_at_nitsche_dot_se

kdevine
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Thu Mar 02, 2006 8:38 pm
Location: Baltimore, MD

Re: Autenticate against another Joomla install?

Post by kdevine » Wed Nov 28, 2007 5:16 pm

Now that Joomla 1.5 has the wonderful plugin architecture wouldn't it be possible to create a plugin (or a set of plugins) that authenticates against another Joomla installation? The ideal situation would be that you could turn of user registration on all sites except the "master site" and yet have Community Builder working (could it be so that the plugin needs to insert the users into the site that has no registration for this to work?).


Yes you can build an authentication plugin so that your users can login to your Joomla sub-sites using their account details from your main Joomla site. Your users would only have to register in one place and use the account on all your Joomla sites.

SSO for all your Joomla sites would also be a great feature but I don't know if it's doable.


Single Sign On is different and not possible with just the authentication or user plugins. It would require some integration with a SAML protocol. (I mean Single Sign On as your users logs in to your main site once and the authenticated session is carried through all of your sub-sites)

User avatar
deepthoughts
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Tue Sep 27, 2005 1:12 pm
Location: The northern part of Sweden (Piteå)

Re: Autenticate against another Joomla install?

Post by deepthoughts » Thu Nov 29, 2007 8:58 am

kdevine wrote:Yes you can build an authentication plugin so that your users can login to your Joomla sub-sites using their account details from your main Joomla site. Your users would only have to register in one place and use the account on all your Joomla sites.


That's good and I sorta suspected that, I just wanted to confirm it. One more question though... If I wanted to use components or plugins that extend the user profile of Joomla (Community Builder is a good example) wouldn't that require that the user is in Joomlas user table? Are you added automatically when you are authenticated for the first time or is this something that the auth-plugin need to handle (i.e. if user not in local user-table add user)?

kdevine wrote:Single Sign On is different and not possible with just the authentication or user plugins. It would require some integration with a SAML protocol. (I mean Single Sign On as your users logs in to your main site once and the authenticated session is carried through all of your sub-sites)


It would be cool but it's not necessary. But it's good to know what it would take to implement


Now I only wish that I was good enough to be able to write this authentication plugin.  :D
Stefan Nitsche
stefan_at_nitsche_dot_se


Post Reply