【问题标题】:Setup template for redirect URIs in google developer console谷歌开发者控制台中重定向 URI 的设置模板
【发布时间】:2017-01-15 00:09:38
【问题描述】:

我尝试为某些项目进行自动部署,当有人 push 到 git 时,为分支和 jenkins 设置项目进行部署并在服务器上部署东西。例如:

|Branch  |URL (will be created)                  |  
|--------|---------------------------------------|  
|master  |http://master.my-project.example.com/  |  
|some    |http://some.my-project.example.com/    |  
|dev-2e  |http://dev-2e.my-project.example.com/  |

一切都很好,但是项目需要使用google OAuth2,并且有一个key,client id,client secret。

因此,我需要设置的不仅仅是一个或五个重定向 URI,我需要 模板
http://*****.my-project。 example.com/oauth2redirect
当我尝试这样做时,我没有任何理由或解释就出现错误。当我只是省略所有 URI 时,没有一个 URI 有效,但我什至同意关闭此限制。

有没有能力做到这一点?还是用于添加新 URI 的编程 API?

【问题讨论】:

    标签: continuous-integration google-oauth developer-console


    【解决方案1】:

    我没有找到解决此问题的任何标准方法。

    How do I add "authorized redirect URIs" to Google OAuth2 using an API?

    说:我需要创建自己的代理服务器,用于重定向。并且在谷歌控制台中具有唯一允许的重定向 URI。

    【讨论】:

      猜你喜欢
      • 2014-10-13
      • 2016-07-09
      • 2015-06-30
      • 2016-09-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-03-28
      • 1970-01-01
      相关资源
      最近更新 更多