Skip to content

docs(auth): document default universe domain on access token constructors - #15217

Merged
lqiu96 merged 4 commits into
googleapis:mainfrom
lqiu96:docs/auth-access-token-universe-domain-javadocs
Nov 25, 2026
Merged

lqiu96 merged 4 commits into
googleapis:mainfrom
lqiu96:docs/auth-access-token-universe-domain-javadocs

Conversation

@lqiu96

@lqiu96 lqiu96 commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Documents that GoogleCredentials access-token factory methods and constructors without an explicit universe domain default to googleapis.com (Credentials.GOOGLE_DEFAULT_UNIVERSE), and delegates GoogleCredentials.create(AccessToken) to GoogleCredentials.create(@Nullable String, AccessToken) while preserving isExplicitUniverseDomain() == false.

@lqiu96
lqiu96 requested review from a team as code owners November 24, 2026 22:38

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Javadoc documentation in GoogleCredentials.java to clarify the behavior of several constructors, factory methods, and builders regarding the universe domain. Specifically, it documents that these methods default to the Google default universe (googleapis.com) and do not read the GOOGLE_CLOUD_UNIVERSE_DOMAIN environment variable, advising callers targeting custom universe domains on the appropriate alternatives to use. There are no review comments to address, and I have no additional feedback to provide.

@lqiu96
lqiu96 requested a review from whowes November 24, 2026 22:55
@lqiu96
lqiu96 enabled auto-merge (squash) November 24, 2026 23:07
@lqiu96
lqiu96 merged commit f9c5fa2 into googleapis:main Nov 25, 2026
308 of 315 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants