Django + Google SSO openid [英] Django + Google SSO openid

查看:170
本文介绍了Django + Google SSO openid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望将我的应用程序 http://app.acquee.com/designer 接受一个Google帐户作为登录。我发现一堆libs为django,但大多数工作在现有的Django身份验证系统,我不使用。我有自己的一套用户表,我保留用户信息和权限。

I would like to have my application http://app.acquee.com/designer to accept a google account as a login. I found a bunch of libs for django but most work on top of existing Django authentication system that I do not use. I have my own set of user tables where I keep user info and privileges.

有关如何将其与Google Openid集成的任何建议?

Any suggestion on how to integrate that with the Google Openid?

似乎我将使用python-openid手动进行操作。还是可以使用 django-openid
但是,后者,我甚至不知道如何发布发现命令。

Seems I will have to do it manually using python-openid. Or could I use django-openid? However, with the latter, I don't even know how to issue the discover command.

无论如何,我被困在google的步骤5 ,向提供的端点地址发送登录认证请求(可选地使用OAuth参数) 。有人可以提供样品请求吗?是GET / POST吗?内容?

Regardless, I get stuck on google's step 5, sending a login authentication request (optionally with OAuth parameters) to the provided endpoint address. Can someone provide a sample request? is it a GET/POST? content?

干杯

推荐答案

您可以尝试 https://launchpad.net/django-openid-auth - 我在一个商业项目中使用它,适用于常规Google帐户和Google Apps帐户。我记得这是当时我最有说服力的一个审查,虽然我现在不能给你任何细节,因为我的短暂记忆。无论如何 - 这是非常有用的。

You can try https://launchpad.net/django-openid-auth - I'm using it in a commercial project, for both regular Google Accounts and Google Apps accounts. I remember that it was the most convincing one at the time I was doing a review, although I can't give you any details now due to my short memory. Anyway - it's working great.

这篇关于Django + Google SSO openid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆