Closed (fixed)
Project:
CAS
Version:
6.x-1.0
Component:
Code
Priority:
Critical
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Sep 2008 at 13:53 UTC
Updated:
5 Feb 2009 at 19:24 UTC
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
Comment #1
benorgan commentedIt 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?
Comment #2
benorgan commentedSolved by downgrading phpCAS to 0.6.0 from 1.0.0
Comment #3
metzlerd commentedClosing as it was solved a long time ago....