Connecting through Zend-Auth to TikiWiki

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

This is an old revision of the document!


This document is exploratory, not authoritative. It likely contains errors, which as the document is on a wiki, you are invited to help fix.

http://framework.zend.com/manual/en/zend.auth.html 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) http://www.ja-sig.org/products/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 → Zent-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.

http://de.tikiwiki.org/xref-trunk/nav.html?lib/core/lib/Zend/Auth/Adapter/Interface.php.source.html

Zend and CAS

http://framework.zend.com/wiki/display/ZFPROP/Zend_Auth_Adapter_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: http://framework.zend.com/issues/browse/ZF - 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 http://framework.zend.com/wiki/display/ZFPROP/Zend_Auth_CAS+Proposal and tells me in an email that he has been using phpCAS (http://www.ja-sig.org/wiki/display/CASC/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.

related information




 

Magento 2 GitHub Repository

Magento Job Board - Some sort of tag line goes here

Latest Posts| View all Jobs