如何将 TurboGears2 身份验证与 PyAMF 结合使用?
我在 Flex 客户端后面使用 TurboGears 和 PyAMF,一切正常。
我想要做的就是向世界公开一个 AMF 登录方法,并且仅在用户登录后才允许访问其他 AMF 功能。
此外,一旦知道用户,我希望受保护的 AMF 方法能够获取用户名来自身份验证信息,因此并非每个函数都必须以 user_id 开头。
任何地方都支持这种集成吗?
I'm using TurboGears with PyAMF behind a Flex client, and everything works well.
What I want to do is expose just a AMF login method to the world, and only allow access to other AMF functions once the user has logged in.
Also, once the user is known, I'd like the protected AMF methods to get the username from the auth information, so not every function has to start with the user_id.
Is there support for this sort of integration out there anywhere?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我还没有这样做,但前几天我碰巧通过 del.icio.us 将此添加为书签。
希望有帮助。
将 PyAMF 与 TurboGears 2 结合使用
I have not done it, but I happened to have this bookmarked the other day via del.icio.us.
Hope it helps.
Using PyAMF With TurboGears 2
我最终花了一天多的时间用 html 帖子访问 /login url,直到一切正常。我无法在 Amf 控制器中使用 repoze.who 机制。
不过,我不认为我会为我的下一个项目选择 Turbogears...每次我设置它时,设置都会出现问题,并且必须做这样的解决方法只是因为它没有经过深思熟虑出架构。
I ended up spending over a day hitting the /login url with html posts until it all worked. I couldn't use the repoze.who mechanism from within the Amf controller.
I don't think I'll choose Turbogears for my next project though... there have been problems with setup every time I've set it up, and having to do work-arounds like this is just because it's not a well thought out architecture.