如何以编程方式为gcp创建oauth客户端ID [英] how to create a oauth client id for gcp programmatically

查看:87
本文介绍了如何以编程方式为gcp创建oauth客户端ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以使用GCP中的GUI创建具有授权重定向URI的OAuth2.0客户端ID和客户端密钥.控制台URL如下所示,供参考

I can create OAuth2.0 Client IDs and Client Secret with Authorized redirect URIs using the GUI in GCP.. The Console URL is given below for reference

https://console.cloud.google.com/apis/credentials

我们如何在云Shell或GCloud SDK中做到这一点

How do we do this in cloud shell or with the GCloud SDK

推荐答案

似乎Google的任何API都无法管理OAuth客户端ID或凭据相关的配置.

It seems that no API from Google can manage OAuth client ID or Credentials related configuration.

我在API库上找不到任何内容,与此相关的许多其他问题也给出了相同的答案(无法管理API 键).

I've not found any on API Library and many other questions related to this give the same answer (can't manage API Key for example).

如果您是Terraform用户,那么他们在Google Provider上是一个未解决的问题: https://github.com/terraform-providers/terraform-provider-google/issues/1287

If you're a Terraform user, they're an open issue on Google Provider: https://github.com/terraform-providers/terraform-provider-google/issues/1287

这篇关于如何以编程方式为gcp创建oauth客户端ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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