Hi there,

I'm developing a site which uses SSO and the CAS module and have some login problems.

The login works correctly up until the point where cas_login_page() is called. The User ID is set correctly and everything is fine. However, after tha call to drupal_goto() in cas_login_page() to redirect to the right page the user session information is lost ($user->uid isn't there any more).

Commenting out the call to cas_login_page() makes the login work (page displays "Logged in via CAS as username") but why is this failing normally?

It seems the user session isn't getting stored correctly.

Ben

Comments

benorgan’s picture

Title: cas_login_page() drupal_goto() redirect breaking login » module_invoke_all('user', 'login', null, $user); not logging user in

It seems that the problem is with the call to module_invoke_all('user', 'login', null, $user); as this doesn't appear to log the user in.

Any ideas?

benorgan’s picture

Solved by downgrading phpCAS to 0.6.0 from 1.0.0

metzlerd’s picture

Category: bug » feature
Status: Active » Closed (fixed)

Closing as it was solved a long time ago....