Google App Engine身份验证选项 [英] Google App Engine authentication options

查看:81
本文介绍了Google App Engine身份验证选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望将一个应用程序放置在Google Cloud上(基本上是将一个可视化的基础项目转换为Javascript,然后将其上传.)我想为基于云的应用程序启动一个订阅服务,并且它不会巨大的想象力.很小(阅读:不是大量的列或大量的数据),只是想给用户一个选择.

I'm looking to put an app on Google Cloud (basically going to convert a visual basic project into Javascript and then upload it.) I want to start a subsciption service for a cloud-based application and it's not going to be gargantuan by any stretch of the imagination. Very small (read: not tons of columns or huge amounts of data) and just want to give users an option.

我今天注册了,发现有3种身份验证选项.但是,我看不到其他选择(例如:基于已确认的付费客户帐户的身份验证).

I signed up today and noticed there were 3 options for authentication. However, I don't see alternatives (example: authentication based on a confirmed paid customer account).

我是否认为没有其他方法可以限制Google App Engine应用程序的访问权限(出于专有原因)?

Am I to assume that there's no other way to limit access for a Google App Engine app (for proprietary reasons)?

推荐答案

您可以将访问权限限制为所需的任何人,您只需要以某种方式跟踪用户并为他们提供某种令牌即可(无论是否授予访问权限).

You can limit access to whoever you want, you'll just have to track users somehow and give them a token of some sort that gives them access, or not.

我已经使用webapp2会话做了一个小型论坛.每个用户都会获得一个永久性ID,他们可以通过使用用户名和密码登录来检索,并且只有当其ID在正确的列表中时,他们才能访问某些内容. webapp2会话

I've done a small forum using webapp2 sessions. Each user gets a persistent ID they can retrieve via logging in with a username and password, and only if they have an ID on the right list can they access certain content. webapp2 sessions

# To set a value:
self.session[username] = 'Paid'

# To get a value:
is_paid = self.session.get(username)

也许(我没有使用过)看一下App Engine样板,它具有许多您可以使用的登录选项. App Engine Boilerplate |测试登录名

Perhaps (I've not used it) have a look at app engine boilerplate, it has lots of login options you could use. App Engine Boilerplate | Test the Login

这篇关于Google App Engine身份验证选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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