Hi Joachim, I've implemented a solution similar to your first description. In my particular case the session data is stored on a NFS-shared file system, not a database.
I'll be happy to share the code once I've tested it more. Thanks, Matt > From: Joachim Fritschi <[email protected]> > Reply-To: <[email protected]> > Date: Sun, 13 Mar 2011 08:31:05 -0700 > To: <[email protected]> > Subject: Re: [cas-user] Moodle Single Sign-out > > Hi Matthew, > > i believe there is no solution out there yet, but i believe with the > phpcas => 1.2.0 it should be easy to implement this. Adam added some > nice callback hook where you can register functions that should be > called on login and logout events: > > setPostAuthenticateCallback() > setSingleSignoutCallback() > > The problem with single logout and moodle is that you have to create > some kind of mapping between the cas service ticket and the moodle > session. This could be done by either adding the ST to the user session > properties in the moodle db with the login callback and searching the > session with the signout callback to terminate the session later... This > is a wild guess but this should not be that difficult. > > Another option would be that you write your own mapping table mapping > moodle session handler to STs. I guess you can pretty much take the > PGTstorage code and modify it accordingly. This of course is a bit dirty > ... ;) > > I will try to have a quick look at the moodle code over the next days > and check out if the first option is easy to implement. > > Best Regards, > > Joachim > > Am 11.03.2011 01:48, schrieb Matthew Selwood: >> Hi all, >> >> I'm trying to CASify Moodle. Looking at the Moodle source code >> (http://cvs.moodle.org/moodle/auth/cas/auth.php?revision=1.3.2.23&view=marku >> p) and the only relevant Moodle/CAS thread I've been able to find >> (http://moodle.org/mod/forum/discuss.php?d=101597), it looks like Moodle >> doesn't natively support single sign-out. >> >> Has anybody modified the source to accomplish this yet? >> >> Thanks, >> Matt >> ------------------------------- >> Matthew Selwood >> Programmer Analyst Web Services >> University of Victoria >> 250.472.5565 | [email protected] | CLE C006 >> >> > > > -- > You are currently subscribed to [email protected] as: [email protected] > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-user -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
