Connecting through Zend-Auth to TikiWiki

Last modified by Martin Cleaver on Fri, June 25, 2010 09:56
Source|Old Revisions  

This document is exploratory, not authoritative. It likely contains errors, which as the document is on a wiki, you are invited to help fix. details the Zend-Auth mechanism. As Magento is based on Zend, it is believed that Magento can authenticate through the Zend-Auth system to backend authentication schemes such as Central Authentication System (CAS)

CAS is supported by many other platforms such as TikiWiki.

  • Magento → Zend-Auth → TikiWiki (within one domain)
  • Magento → Zend-Auth → CAS → TikiWiki (cross domain)
  • Magento → Zend-Auth → PEARCAS → CAS → TikiWiki (cross domain)
  • Magento → Zend-Auth → PhpCAS → CAS → TikiWiki (cross domain)

Zend and Magento

Magento uses Zend as a platform. It is assumed that if something can authenticate with Zend then it will be able to also authenticate to Magento.

Zend and TikiWiki

It appears that Zend and TikiWiki may be able to share backend authentication information even without CAS. In this configuration, however, the multiple sites would have to share a domain name.

Zend and CAS outlines a CAS authenticator for Zend. It appears, however, that this has not progressed beyond Proposal, its first milestone: # Milestone 1: is “DONE” Initial proposal published for review. Not marked as done: a working prototype, unit tests, etc.

According to that page, the code is nowhere near complete. Given it’s age (March 2008, almost a year ago), and no further updates, it appears that this has not been worked on since.

Further, there is no component listed for CAS in the Zend Framework wiki: - unlike Zend_Auth_Adapter_OpenID and Zend_Auth_Adapter_Ldap

Zend and CAS and PearCAS

(under review)

Zend and CAS and PhpCAS

Henry Umansky made a and tells me in an email that he has been using phpCAS (

“I’d be happy to share the (phpCAS→Zend) adapter code if you are interested. I would love to continue the Zend Cas proposal by converting the code from phpCAS to Zend_Auth_Adapter_Cas. "

He shared a link to his server, noting that “We are still under development, but if you click the “Login” link, you’ll notice it redirects to our CAS server.”

For a proof of concept we need to show Magento authenticating against CAS. We can then propose to the client that tidier code would be more robust and maintainable and offer to pull phpCAS code into Zend.

I’ve asked Henry for a copy of his code.

Magento authentication sessions

To investigate we will begin by looking for authentication information stored in Magento.

First, we are adding custom code, shows how to change the functionality without editing the main code install.

“Authentication is driven by the Adapter in use, and performed by a quick call to the singleton (there can only be one such object globally) Zend_Auth instance.” shows how to write an override for Radius.

TikiWiki, phpCAS and CAS

related information


Magento 2 GitHub Repository

Magento Job Board - Some sort of tag line goes here

Latest Posts| View all Jobs