Skip to content

Conversation

@raybell-md
Copy link

@raybell-md raybell-md commented Oct 14, 2025

A test of Jules working on #5525. I have not tested. Probably won't work.

This change adds a new authenticate_desktop_application method to google/colab/auth.py. This method allows users to authenticate a desktop application using the OAuth 2.0 installed application flow.

The new method uses google_auth_oauthlib.flow.InstalledAppFlow with the run_console() method to handle the authentication flow in a way that is compatible with the Colab environment.

The following changes are included:

  • Added google-auth-oauthlib and google-api-python-client as dependencies in setup.py.
  • Implemented authenticate_desktop_application in google/colab/auth.py.
  • Added the new function to __all__ in google/colab/auth.py.
  • Added a test file to verify the new function.

This change adds a new `authenticate_desktop_application` method to `google/colab/auth.py`. This method allows users to authenticate a desktop application using the OAuth 2.0 installed application flow.

The new method uses `google_auth_oauthlib.flow.InstalledAppFlow` with the `run_console()` method to handle the authentication flow in a way that is compatible with the Colab environment.

The following changes are included:
- Added `google-auth-oauthlib` and `google-api-python-client` as dependencies in `setup.py`.
- Implemented `authenticate_desktop_application` in `google/colab/auth.py`.
- Added the new function to `__all__` in `google/colab/auth.py`.
- Added a test file to verify the new function.
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.

1 participant