Customized HTTP Authentication Adapter
Our development team is working on a web application that uses Zend Framework on Apache HTTP server, which also executes servlets running on Apache Tomcat. Before deciding on using the Zend framework, we were able to authenticate against Apache HTTP server and pass the authenticated session to Tomcat via Mod_jk and successfully call the servlets. When we implemented the Zend framework, we initially used the Zend_Auth_Adapter_DbTable class for authentication against our MySQL schema. This worked fine, but it seems that using this class does not create a session on Apache, and therefore mod_jk has nothing to hand off to Tomcat to call our servlets. (If this is not the case, please let me know...we are new to this.) I then looked at using the Zend_Auth_Adapter_Http for authentication since the documentation states that: it includes support for authenticating against text files and provides an interface for authenticating against other sources, such as databases. The API only provides a class for authentication against a file containing username/credentials. It is assumed that we would have to write our own interface to use our MySQL table for authentication, but we are not sure how to accomplish this. I could not find any examples of this approach anywhere, so I'm hoping someone can enlighten me on how to proceed. Also, if this is not the best way to proceed, then please feel to send some other ideas. The main goal is to authenticate with the Zend framework, but still establish an Apache session so that mod_jk can forward requests to Tomcat for execution of our servlets. Thanks for any help!
|