在谷歌应用程序引擎的自定义验证(蟒蛇) [英] Custom authentication in google app engine (python)

查看:124
本文介绍了在谷歌应用程序引擎的自定义验证(蟒蛇)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

没有人知道或不知道的地方我可以学习如何使用Python和谷歌应用程序引擎创建自定义的验证过程?

Does anyone know or know of somewhere I can learn how to create a custom authentication process using python and google app engine?

我不希望使用谷歌账户进行身份验证,并希望能够创建自己的用户。

I don't want to use google accounts for authentication and want to be able to create my own users.

如果没有专门针对谷歌应用程序引擎,对如何使用Python来实现认证和Django的任何资源?

If not specifically for google app engine, any resource on how to implement authentication using python and django?

推荐答案

好了的Django 1.0今日在谷歌AppEngine上更新。但是你可以让用户验证其他任何事情一样,你就不能真正使用会话,因为它是如此的庞大。

Well django 1.0 was updated today on Google AppEngine. But you can make user authentication like anything else you just can't really use sessions because it is so massive.

有在 http://gaeutilities.appspot.com/

http://gaeutilities.appspot.com/session

HTTP://$c$c.google.com/p/gaeutilities/

或者

您必须创建自己的用户表和散列或加密的密码,那么很可能创建令牌系统,模仿会议只是一个象征哈希或UUID的cookie(会话都只是饼干反正)。

You have to create your own user tables and hash or encrypt passwords, then probably create a token system that mimics session with just a token hash or uuid cookie (sessions are just cookies anyways).

我已经实现了只用基本google.webapp请求和响应头几下。我通常使用的UUID主键作为用户ID,然后加密用户密码,并有他们的电子邮件复位。

I have implemented a few with just basic google.webapp request and response headers. I typically use uuids for primary keys as the user id, then encrypt the user password and have their email for resets.

如果您要授权外部访问数据的用户,你可以看看OAuth认证应用访问。

If you want to authorize users for external access to data you could look at OAuth for application access.

如果你只是想通过一个ID来存储数据,它是更多的消费者面对的,也许只是使用OpenID的计算器一样,然后配置文件数据附加到像Django的配置文件的标识符(的http://$c$c.google.com/p/openid-selector/ )。

If you just want to store data by an id and it is more consumer facing, maybe just use openid like stackoverflow and then attach profile data to that identifier like django profiles (http://code.google.com/p/openid-selector/).

Django的1.0今天刚出来的时候在GAE上,但我认为存在着同样的问题,没有会话,你必须真正建立自己的那家商店会话数据。

django 1.0 just came out today on GAE but I think the same problems exist, no sessions, you have to really create your own that store session data.

这篇关于在谷歌应用程序引擎的自定义验证(蟒蛇)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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