Client credentials still opens browser for authentication
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
Notification: The author has updated the issue description. Maintainers, please review.
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.
This has been automatically closed because it has been marked as stale for over 7 days.
@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.
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.