Skip to content

docs(auth): fix VerifyGoogleIdToken sample and document parameters - #15345

Open
lqiu96 wants to merge 1 commit into
googleapis:mainfrom
lqiu96:docs/auth-0f-fix-verify-google-id-token-sample
Open

lqiu96 wants to merge 1 commit into
googleapis:mainfrom
lqiu96:docs/auth-0f-fix-verify-google-id-token-sample

Conversation

@lqiu96

@lqiu96 lqiu96 commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Update VerifyGoogleIdToken.java to call setCertificatesLocation(jwkUrl) instead of setIssuer(jwkUrl), link TokenVerifier.Builder#setCertificatesLocation, and add Javadoc describing idToken, audience, and jwkUrl (including TokenVerifier default JWKS URLs).

@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 Google ID token verification snippet to use setCertificatesLocation instead of setIssuer on the TokenVerifier builder, and adds a documentation link explaining the change. I have no feedback to provide.

- Call setCertificatesLocation(jwkUrl) instead of setIssuer(jwkUrl) and link TokenVerifier.Builder#setCertificatesLocation.
- Document verifyGoogleIdToken parameters (idToken, audience, and jwkUrl) and TokenVerifier default JWKS URLs.
@lqiu96 lqiu96 changed the title docs(auth): fix VerifyGoogleIdToken sample to call setCertificatesLocation docs(auth): fix VerifyGoogleIdToken sample and document parameters Dec 1, 2026
@lqiu96
lqiu96 force-pushed the docs/auth-0f-fix-verify-google-id-token-sample branch from e475a9c to f6e85f7 Compare December 1, 2026 19:00

This branch has not been deployed

No deployments
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.

1 participant