furiosa 9ebd2c4b6d Add rbw integration for automated Google login
- Look up credentials from rbw password manager
- Automate email/password entry in Google login flow
- Add --copy flag to copy cookie JSON to clipboard
- Add --entry flag to specify rbw entry name
- Add --manual flag to skip auto-login
- Update flake.nix with rbw, wl-clipboard, xclip deps
2026-01-18 22:22:26 -08:00
2025-02-17 11:13:05 -08:00
2025-02-17 11:13:05 -08:00
2025-02-17 12:22:04 -08:00

Google Cookie Retrieval

This is a simple Selenium script used to quickly run through the Mautrix Google Chat Authentication Process.

It was written primarily with goose (honk!).

The goal: Automate this

  1. Open a private chat with the bridge bot. Usually @googlechatbot:your.server.

    • If the bot doesn't accept the invite, see the troubleshooting page
  2. Open https://chat.google.com in a private browser window and log in normally, then extract cookies:

    1. Press F12 to open developer tools.
    2. select the "Application" (Chrome) or "Storage" (Firefox) tab.
    3. In the sidebar, expand "Cookies" and select https://chat.google.com.
    4. In the cookie list, find the COMPASS, SSID, SID, OSID and HSID rows.
      • When using Firefox, you may have multiple COMPASS cookies with different paths. Pick the one where path is /.
    5. Form a JSON object with the extracted cookies. It should look something like this (field names are case-insensitive):
    {
      "compass": "dynamite-ui=...",
      "ssid": "...",
      "sid": "...",
      "osid": "...",
      "hsid": "..."
    }
    
    1. Close the browser window to prevent the cookies being invalidated (Google uses refresh tokens, so you need to close the window within a few minutes).
  3. Send login-cookie {the json object} to the bot.

Recent chats should now get portals automatically. Other chats will get portals as you receive messages.

Description
No description provided
Readme 52 KiB
Languages
Python 82%
Nix 18%