adk-python icon indicating copy to clipboard operation
adk-python copied to clipboard

Client credentials still opens browser for authentication

Open mdesanti opened this issue 1 year ago • 5 comments

Describe the bug I am having the same problem as reported in this issue: https://github.com/google/adk-python/issues/1475. The steps to reproduce are exactly as reported there

To Reproduce See the issue https://github.com/google/adk-python/issues/1475. The steps are the same

Expected behavior Token exchange should happen server side. The browser must not open asking the user for authentication.

Desktop (please complete the following information):

  • OS: macOS 26.0.1 (25A362)
  • Python version(python -V): Python
  • ADK version(pip show google-adk): 1.19.0

Model Information:

  • Are you using LiteLLM: No
  • Which model is being used: gemini-2.5-pro

mdesanti avatar Nov 28 '25 16:11 mdesanti

Notification: The author has updated the issue description. Maintainers, please review.

adk-bot avatar Dec 10 '25 05:12 adk-bot

This issue has been automatically marked as stale because it has not had recent activity for 7 days after a maintainer requested clarification. It will be closed if no further activity occurs within 7 days.

adk-bot avatar Dec 21 '25 06:12 adk-bot

This has been automatically closed because it has been marked as stale for over 7 days.

adk-bot avatar Dec 28 '25 06:12 adk-bot

@mdesanti Thank you for informing us. Please be assured that the request is under review, and we will keep you informed of any next steps. We appreciate your patience. Thanks.

klateefa avatar Feb 11 '26 08:02 klateefa

I reproduced this on e8c4bac through OpenAPIToolset and Runner, with fake token and API endpoints. A client-credentials-only scheme emits adk_request_credential with a response_type=code URL pointing at the token endpoint. Neither endpoint receives a request. The standalone OAuth2 exchanger works, but this OpenAPI path asks for interactive authorization before reaching it.

Could I take a focused fix for that path? I would reuse the existing async client-credentials exchange, keep authorization-code consent unchanged, and test the emitted auth events as well as the token POST and authenticated API call. I did not find an overlapping open PR; please let me know if there is an internal fix in progress.

Samecho avatar Oct 15 '26 00:10 Samecho