Django 和 Google Apps 用户身份验证
我想将 Google Apps 集成到我的 django 应用程序中,并且需要所有 Google Apps 用户都可以登录。解决方案有很多,但所有解决方案都仅适用于一个域或有限数量的域。但这对我来说还不够,我想实施 SSO,因此我必须能够向所有 Google Apps 域的用户授予访问权限。
我发现的所有解决方案都只缺少身份验证过程的第一步:这意味着获取给定的域并找到适当的 XRDS 文件的位置。我看到它是用 PHP 编写的,用 Python 做同样的事情并不困难。但是,如果某个地方有可行的解决方案,那么重新编写它是没有用的。
你能给我推荐一些东西吗?
I want to integrate Google Apps into my django application and I need that all Google Apps users could log in. There are plenty of solutions but all of them are meant just for one domain or a limited number of domains. But that's not enough for me, I want to implement SSO and therefore I have to be able to grant access to users from all Google Apps domains.
All solutions I have found are missing only the first step of authenticating process: it means to take the given domain and find location of appropriate XRDS file. I saw it written in PHP and it wouldn't be difficult to do the same thing in Python. However, it would be useless to write it again if there is a working solution somewhere.
Could you recommend me something?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
将 App Engine 的 OpenID 支持与 Google Apps Marketplace。
Use App Engine's OpenID support in conjunction with Google Apps Marketplace.
有一个 Django 应用程序似乎非常适合您的情况: https://github.com/hudora/django- googleappsauth/
唯一的缺点是代码中的注释是德语的,但在谷歌翻译的帮助下我并没有发现很难理解,而且自述文件涵盖了大部分内容。
There's a Django App that seems pretty suited to your situation: https://github.com/hudora/django-googleappsauth/
Only downside is the comments within the code are in German, but I've not found it too hard to follow with the help of Google Translate and the Readme covers most parts.