Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix(impersonate): exchange user JWTs with RFC 7523 jwt-bearer grant - #3675

#3675
Open
matiasbertani wants to merge 1 commit into
googleapis:maingoogleapis/google-api-go-client:mainfrom
matiasbertani:impersonate-jwt-bearer-grantmatiasbertani/google-api-go-client:impersonate-jwt-bearer-grantCopy head branch name to clipboard
Open

fix(impersonate): exchange user JWTs with RFC 7523 jwt-bearer grant#3675
matiasbertani wants to merge 1 commit into
googleapis:maingoogleapis/google-api-go-client:mainfrom
matiasbertani:impersonate-jwt-bearer-grantmatiasbertani/google-api-go-client:impersonate-jwt-bearer-grantCopy head branch name to clipboard

Conversation

@matiasbertani

Copy link
Copy Markdown

Fixes #3671

The user (Subject) flow exchanged the signJwt-signed JWT at oauth2.googleapis.com/token using the pre-RFC 7523 legacy grant (grant_type=assertion). Since mid-July 2026 that path rejects JWTs signed with recently-rotated system-managed keys with "invalid_grant: Invalid JWT Signature". Exchange with the standard urn:ietf:params:oauth:grant-type:jwt-bearer grant instead, matching google-auth-library-python's behavior for the same flow.

@matiasbertani
matiasbertani requested a review from a team as a code owner July 25, 2026 15:47
The user (Subject) flow exchanged the signJwt-signed JWT at
oauth2.googleapis.com/token using the pre-RFC 7523 legacy grant
(grant_type=assertion). Since mid-July 2026 that path rejects JWTs
signed with recently-rotated system-managed keys with
"invalid_grant: Invalid JWT Signature". Exchange with the standard
urn:ietf:params:oauth:grant-type:jwt-bearer grant instead, matching
google-auth-library-python's behavior for the same flow.

Fixes googleapis#3671
@matiasbertani
matiasbertani force-pushed the impersonate-jwt-bearer-grant branch from fa5c88c to b7bbd51 Compare July 25, 2026 15:57
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.

impersonate: JWT exchanged with legacy grant_type=assertion, now rejected with "invalid_grant: Invalid JWT Signature"

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.