python - 你能用 bottle + AD Authenticate 运行 ssl 吗?

标签 python mongodb ssl bottle

我一直在寻找多个来源,但似乎无法得到一个好的答案。我正在尝试部署一个非常简单的应用程序,它显示来自 mongodb 的信息、接受发布数据以进行输入、使用 SSL 和 AD 进行身份验证。

我在 Windows 64 位平台上使用带有 python 2.7、mongodb 的 bottle。如果完全有必要,我可以切换到 CentOS。

到目前为止,为数不多的教程似乎都不适用于我当前的配置。我要求的可能吗?我应该切换到不同的框架吗?

tldr:

你能运行一个集成了 SSL 和 AD 的 bottle 应用程序吗?

如果没有,什么 python 框架几乎一样简单并且仍然具有此功能。

编辑:我找到了this flask 。它可以和 Bottle 一起使用吗?还有,在windows上可以吗?

最佳答案

肯定有多种方法可以实现让 bottle 在 Windows 上使用 SSL + AD 的目标。

带 Bottle 的 SSL:

带有 AD 的 python(以及专门关于 windows 的信息):

如果您想使用 session 管理进行身份验证,您可以将 AD 与烧杯等瓶中间件配对:bottle hooks with beaker session middleware and checking logins

Bottle 本身并没有内置处理 SSL 的能力,据我所知,就像 flask 一样。但是上面的最后一个 SSL 链接显示了类似的简单可用性。

关于python - 你能用 bottle + AD Authenticate 运行 ssl 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21634095/

相关文章:

html - 通过一些弹出窗口登录(通过 https),同时浏览网站并在同一页面上(通过 http)

python - 如何在存储在列表中的字典中搜索值

python - 获取文件保存的目录(tkinter filesave 提示)

python - RandomizedSearchCV 和 XGBoost + 提前停止

python - 类型错误 : cannot concatenate 'str' and 'int' objects

node.js - 在 Nodejs 中配置最大旧空间大小

.net - 单元测试 MongoDB.Driver dotnet core

node.js - 在 Meteor 或 Node 中批量插入 mongodb

ssl - 如何在 Cloud Foundry/Heroku 中保留用于验证的 SSL 服务器证书?

asp.net - 使用 SSL 在服务器上部署 ASP.Net MVC 5 应用程序