谷歌应用程序引擎:如何添加管理员帐户 [英] google app engine: how to add adminstrator account
本文介绍了谷歌应用程序引擎:如何添加管理员帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在谷歌应用程序引擎上开发一个网络系统。我想为系统创建一个管理员帐户,以便他/她可以登录来设置各种系统设置。但我该如何创建这样一个帐户呢?感谢。
解决方案
- 转到管理控制台 https://appengine.google.com 。
- 点击左侧菜单中的Permissions。
- 输入新用户的电子邮件,将角色设置为所有者,然后单击邀请用户。 编辑:
如果您在管理员的应用程序中提供了功能,您可以: 只需在代码中硬编码此人的电子邮件,如果您只有一名管理员,或者
- 将此人添加为管理控制台中的管理员,那么请在代码中检查用户是否为admin ,如果您使用App Engine的用户服务进行身份验证。
I am developing a web system on the google app engine. I would like to create an administrator account for the system such that he/she may login to set various system settings. But how do I create such an account in the first place? Thanks.
解决方案- Go to the Admin console at https://appengine.google.com.
- Click Permissions in the left menu.
- Enter email of a new user, set the role to "Owner" and click "Invite user".
EDIT:
If you provide functionality within your app for administrators, you can:
- simply hardcode an email of this person in your code, if you only have one administrator, or
- add this person as an admin in Admin Console, then check if a user is admin in your code, if you use App Engine's User Service for authentication.
这篇关于谷歌应用程序引擎:如何添加管理员帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文