Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Davda-James
Copy link
Contributor

@Davda-James Davda-James commented Aug 14, 2025

Solves the issue: #2581

So earlier it checks only for web in secret json but it will break and not work if in oauth we have desktop or other app, hence need to have support for that as well so added that and fixed.
Earlier, before fixing
image

After fixing
image


Summary by cubic

Updated the Gmail 2FA integration script to support credentials files with both "web" and "installed" sections, fixing errors for desktop app OAuth setups.

  • Bug Fixes
  • Script now accepts credentials for web and desktop applications.
  • Prevents failures when "installed" OAuth is used.

Besides this I have also checked the ./bin/test.sh and ./bin/lint.sh, there are some fails but that is not due to my code, it is failing in other files that I have not changed.

…f web application oauth, not in case of other like desktop application
@CLAassistant
Copy link

CLAassistant commented Aug 14, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cubic analysis

No issues found across 1 file. Review in cubic

@Davda-James
Copy link
Contributor Author

Davda-James commented Aug 14, 2025

Also while checking for seeing why the tests fails I noticed that _browser_context has been used in test_browser_session_start.py but actually there is no such method or property in BrowserSession class, hence it throws error due to which test fails.
Besides this there is property in test_browser_session_start being accessed that is page on agent_focus CDP session but CDP does not have any property of page.
Also in browser/session.py Self is being used but self is available in python3.11 after, so showing error in current python being used in browser-use. Should I fix this things and made separate PR or should I commit it in the same PR.

@MagMueller MagMueller merged commit 3bc7ea2 into browser-use:main Sep 6, 2025
43 checks passed
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.

3 participants