Tuesday, October 26, 2010

Re: Multiple apps / one login

I solved this problem by having one app handle all of my logins and
then redirect after authentication to one or more of the other sites.
In the redirect I pass the users temporary token to the second site.
In all the sites during the app.beforefilter I check for this passed
params decode it and read from the model the user that was passed in
and then I set auth true and skip that sites login.

This technique has worked well across multiple servers and even across
technologies meaning going from CakePHP on a linux box to a .Net
server on Windows and later back to the linux box.

From the users point of view they have no idea how many times they
switch from one server to another unless they are really watching the
url.


On Oct 24, 2:56 am, hapoo <arez...@gmail.com> wrote:
> I've experimented and successfully implemented Auth and Acl on one
> app. However I want to design a site with multiple independent apps
> which all share one login system/DB. For example the main site
> (example.com) will be one app. The blogs (example.com/blog) will be
> another app, and the recipe page (example.com/recipe) will be yet
> another app. But I want them all to use a single login and act like
> one coherent site. Is there any way to do this? Thanks

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: