Single logon for CMS and PIWIK


#1

Hi,

I would like to create a single logon experience for my CMS and PIWIK. I plan to have the user databases exactly the same (and eventually shared/linked somehow.) I’m not sure what the best way is to do this but I had thought that I may be able to write a plugin in the CMS that will do the CMS logon then pass the login details over to piwik.

I would like to pass the login details in an array to the below function as defined in login.php

/**
* Authenticate user and initializes the session.
* Listens to Login.initSession hook.
*
* @param Piwik_Event_Notification $notification
*/
function initSession($notification)
function initSession($notification)

Is anyone able to advise me how I can get pass the array from the CMS to this function? Or if it is possible to interface the two systems at the back-end.

Cheers :slight_smile:


(Matthieu Aubry) #2

Look at the existing LDAP plugins etc.