I have a Wordpress site with a lot of content that I want to integrate
CakePHP into.  I want to required users to be logged in to be able to
use the application so I want to integrate the CakePHP Auth component
with Wordpress.  I've thought of a couple possible ways of doing this.

1.  Create a WP plugin that calls the User login method in the cakePHP
controller, then redirects from within CakePHP to wherever Wordpress
would normally send the user.  This seems possible, but I'm not sure
how to handle the redirection properly.

2.  Somehow automatically log in the user to CakePHP after WP by
setting the approriate Auth session variables.

3.  Override CakePHP's authorization check somehow by just checking
the WP session.

I'm not 100% sure on how to do any of these yet, but I'm sure one
would work.  Anyone have any suggestions?  I'm looking for the
preferred approach plus some details on how to implement as I'm not an
Auth component expert by any means.

Thanks,
John

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to