Login through CAS module development

pjung

Joined: 2008-03-11
Posts: 1
Posted: Thu, 2008-03-27 10:34

Hi,

I'm working on a module that allows Gallery login using a CAS (SSO) server.
Basically, I have imported users from CAS to Gallery and I don't want them to have to log into Gallery if they are already logged in CAS. (yeah right, that is SSO's goal)

My development Gallery version is 2.2 and therefore I can't use the "Gallery:BeforeDisplay" event, which is rather frustrating as this seems to be the cleaner way to do what I want. Instead, I had to modify my theme.inc so that it calls my CASLogin function in every "show" function (showAdminPage, showModulePage, ...).

Do you see another (and cleaner) way of proceeding ?

Best regards,
Philippe