Skip to content

Commit 1509dcf

Browse files
GWealecopybara-github
authored andcommitted
fix: remove unused userinfo_endpoint from GoogleApiToolset OIDC config
The userinfo_endpoint field is never read anywhere in ADK, so this hardcoded URL had no runtime effect. The OAuth flow only uses the authorization and token endpoints. Removing it. Co-authored-by: George Weale <gweale@google.com> PiperOrigin-RevId: 943396380
1 parent 6b385e4 commit 1509dcf

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/google/adk/tools/google_api_tool/google_api_toolset.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,6 @@ def _load_toolset_with_oidc_auth(self) -> OpenAPIToolset:
143143
'https://accounts.google.com/o/oauth2/v2/auth'
144144
),
145145
token_endpoint='https://oauth2.googleapis.com/token',
146-
userinfo_endpoint=(
147-
'https://openidconnect.googleapis.com/v1/userinfo'
148-
),
149146
revocation_endpoint='https://oauth2.googleapis.com/revoke',
150147
token_endpoint_auth_methods_supported=[
151148
'client_secret_post',

0 commit comments

Comments
 (0)