开发者

Using Zend_amf without other parts of the Zend Framework

开发者 https://www.devze.com 2023-03-16 00:06 出处:网络
I currently have a web application built using a custom MVC framework with a front controller. The frame provides for things like authentication, authorization etc.

I currently have a web application built using a custom MVC framework with a front controller. The frame provides for things like authentication, authorization etc.

The flow is currently as follows request->authenticate->check authorization->process request

I would like to add Zend_AMF into the mix so that a different front end built in flash may be used. Looking at the Zend_AMF documentation, I can see that Zend_AMF supports authentication (Zend_Auth) and authorization (Zend_ACL). The issue is that I would like to use my own authentication and authorization classes in my framework. I do not wish to use Zend_ACL and Zend_Auth.

My idea is to then implement the Zend_AMF server as a controller. I then need to intercept the request from Zend_AMF, determine whether the user is allowed to run that method, generate the response and then hand it back to Zend_AMF to send back.

The problem is that how do I intercept the request, do my processing and then hand it back to Zend_AMF? I have been looking at the documentation, but cant seem to find a way to do this.

Any ideas or even better solutions are very welcom开发者_高级运维ed :)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号