Skip to content

Commit b1f4d1e

Browse files
author
david.klinberg
committed
fix(oauth): add client id to token exchange
1 parent 3bc2d77 commit b1f4d1e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/google/adk/auth/exchanger/oauth2_credential_exchanger.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ async def exchange(
9292
authorization_response=auth_credential.oauth2.auth_response_uri,
9393
code=auth_credential.oauth2.auth_code,
9494
grant_type=OAuthGrantType.AUTHORIZATION_CODE,
95+
client_id=auth_credential.oauth2.client_id,
96+
9597
)
9698
update_credential_with_tokens(auth_credential, tokens)
9799
logger.debug("Successfully exchanged OAuth2 tokens")

0 commit comments

Comments
 (0)