瓶用户认证 [英] Flask user authentication
问题描述
我将使用烧瓶和MongoDB的申请;我可能会其托管在Rackspace公司。
I have an application that will use flask and mongodb; I will probably host it on rackspace.
我需要了解如何鉴别烧瓶作品。我还没有发现关于这个问题的信息。是否有关于如何推出自己的解决方案,一个完整的教程?如果不是这样,我当然想听听你将如何对待它的烧瓶中应用的一些想法。
I need to understand how flask authenticating works. I have not found much information on the subject. Is there a complete tutorial on how to roll your own solution? If not, I certainly would like to hear some thoughts on how you would approach it for a a flask app.
大PS:
我只是想过。我还需要打开一个真正的API。该API的部分将被用于对AJAX在前端。我如何确保应用程序的一部分?
I just thought about it. I also need to open a real API. A part of that API will be used for AJAX on the front end. How do i secure that part of the app?
谁能解释API AUTH请求?
Can anyone explain API auth requests?
推荐答案
我会建议使用 烧瓶登录
延伸,它使得会话管理很容易添加到您的瓶
应用程序,并提供了一个很好的documentation 其中详细覆盖延伸的每一个方面。
I would suggest using the flask-login
extension, it makes session management really easy to add to your flask
application, and provides a nice documentation which covers in details every aspect of the extension.
这篇关于瓶用户认证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!