借助Google App Engine,是否可以在默认用户授权模板中自定义样板文件? [英] With Google App Engine, is it possible to customize boilerplate in default user authorization template?

查看:119
本文介绍了借助Google App Engine,是否可以在默认用户授权模板中自定义样板文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我指的是 https://appengine.google.com/_ah/loginform上的网页,用户将被 google.appengine.api 中的 users.create_login_url 方法重定向到该用户。模块。这适用于使用Google帐户进行身份验证



我想更改对项目名称的引用(与我的自定义域名不同)以匹配我的域名。



页面目前说:


应用程序项目名称正在请求访问您的Google帐户的权限。


我更喜欢它说:


应用程序 example.com 正在请求访问您的Google帐户的权限。


我更新了在 API管理器>凭证> OAuth同意屏幕下的Google云端平台仪表板,但(几小时后)似乎没有任何影响。

我也在仪表板中搜索了App Engine设置。这可能吗?如果没有,解决方法的建议?



更新



我打开了一个问题( Issue 12919 ),以下是@DanCornilescu所建议的Google代码。它引用了这个问题以及与此问题相关的另一个最近的StackOverflow问题



我还在 AppEngine subreddit 上提出了Reddit上的问题。 Google开发者将Google代码票证标记为私人,因此我可以上传一些私人项目信息,但我会在 Reddit线程



解决方法



@ steeling的答案下面提供了一个解决方案,为我工作。

解决方案

这里存在一个错误,但与此同时,您可以通过旧版管理控制台访问 appengine。 google.com 。如果在点击应用程序后单击应用程序设置,它会将您带到新的云控制台。但是,如果您右键单击并复制链接,并在网址末尾删除& deprecated,您仍然可以访问旧页面。


I'm referring to the page at https://appengine.google.com/_ah/loginform that the user will be redirected to by the users.create_login_url method from the google.appengine.api module. This is for authentication using Google Accounts.

I'd like to change references to the project name (which is different from my custom domain) to match my domain.

The page currently says:

The application project-name is requesting permission to access your Google Account.

I'd prefer it said:

The application example.com is requesting permission to access your Google Account.

I've updated the settings in the Google Cloud Platform dashboard under API Manager > Credentials > OAuth Consent Screen, but (even a couple hours later) that doesn't seem to have had any impact.

I've searched the App Engine settings in the dashboard as well. Is this possible? If not, suggestions for a workaround?

Update

I've opened up an issue (Issue 12919) on Google Code as suggested by @DanCornilescu below. It references both this question and the other recent StackOverflow question related to this issue.

I also raised the issue on Reddit in the AppEngine subreddit. The Google dev marked the Google Code ticket private so I could upload some private project information, but I'll update its status in the Reddit thread.

Workaround

@steeling's answer below offers a workaround that worked for me.

解决方案

There's a bug here, but in the meantime you can go through the old admin console at appengine.google.com. If you click "Application Settings" after clicking on your application it will take you to the new cloud console. But if you right click and copy the link and remove the "&deprecated" at the end of the url you can still visit the old page.

这篇关于借助Google App Engine,是否可以在默认用户授权模板中自定义样板文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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