[java-storage] Improve the example of setClientEndpoint adding how to change oauth endpoint
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
Research direction
Start with samples/snippets/src/main/java/com/example/storage/bucket/SetClientEndpoint.java and compare it with the request-endpoints documentation. Confirm how a Private Service Connect setup changes the OAuth2 token endpoint, then update the example or document the guidance so users can obtain an access token in that environment.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Java
- Stars
- 2.1k
- Forks
- 1.2k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 131
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from googleapis/google-cloud-java
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
googleapis/google-cloud-java#14132 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
googleapis/google-cloud-java#14025 ·
-
priority: p2 type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
googleapis/google-cloud-java#13255 · 2 comments ·
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/google-cloud-java#13032 ·
-
priority: p3 type: feature request
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
googleapis/google-cloud-java#12071 ·
All issues in googleapis/google-cloud-java
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100