[java-storage] Improve the example of setClientEndpoint adding how to change oauth endpoint

未关闭 适合新手
#12,644 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
68/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
停滞
技术栈
java
领域
cloud

调研方向

从 samples/snippets/src/main/java/com/example/storage/bucket/SetClientEndpoint.java 开始,并将其与 request-endpoints 文档进行比较。确认 Private Service Connect 设置如何更改 OAuth2 token endpoint,然后更新示例或记录相关指导,以便用户能够在该环境中获取 access token。

由索引模型根据 Issue 内容生成。

描述

api: storage priority: p3 type: docs

Currently the code here [1] is being used as a reference here [2] however in an on-prem environment using Private Service Connect is also necessary to change the oauth2 token endpoint in order to get the access token.

Is your feature request related to a problem? Please describe.
setClientEndpoint example is not complete if you would like to use this library on a PSC environment

Describe the solution you'd like
Improve the current setClientEndpoint example [1]

Describe alternatives you've considered
Add a new section on [2], it looks like every library might need this feature as well

[1] https://github.com/googleapis/java-storage/blob/main/samples/snippets/src/main/java/com/example/storage/bucket/SetClientEndpoint.java
[2] https://cloud.google.com/storage/docs/request-endpoints

主要语言
Java
星标
2.1k
派生
1.2k
平均合并
1 天 21 小时
30 天内合并 PR
131

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

googleapis/google-cloud-java 的其他 Issue

查看 googleapis/google-cloud-java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。