tftsr-devops_investigation/src-tauri/src/integrations
Shaun Arman e45e4277ea
Some checks failed
Auto Tag / auto-tag (push) Successful in 6s
Test / rust-fmt-check (push) Failing after 2m5s
Release / build-macos-arm64 (push) Successful in 6m35s
Test / rust-clippy (push) Failing after 18m2s
Release / build-linux-arm64 (push) Failing after 22m15s
Test / rust-tests (push) Successful in 12m46s
Test / frontend-typecheck (push) Successful in 1m36s
Test / frontend-tests (push) Successful in 1m26s
Test / wiki-sync (push) Successful in 47s
Release / build-linux-amd64 (push) Successful in 21m0s
Release / build-windows-amd64 (push) Successful in 14m42s
feat: complete webview cookie extraction implementation
Implement working cookie extraction using Tauri's IPC event system:

**How it works:**
1. Opens embedded browser window for user to login
2. User completes authentication (including SSO)
3. User clicks "Complete Login" button in UI
4. JavaScript injected into webview extracts `document.cookie`
5. Parsed cookies emitted via Tauri event: `tftsr-cookies-extracted`
6. Rust listens for event and receives cookie data
7. Cookies encrypted and stored in database

**Technical implementation:**
- Uses `window.__TAURI__.event.emit()` from injected JavaScript
- Rust listens via `app_handle.listen()` with Listener trait
- 10-second timeout with clear error messages
- Handles empty cookies and JavaScript errors gracefully
- Cross-platform compatible (no platform-specific APIs)

**Cookie limitations:**
- `document.cookie` only exposes non-HttpOnly cookies
- HttpOnly session cookies won't be captured via JavaScript
- For HttpOnly cookies, services must provide API tokens as fallback

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-04-03 17:31:48 -05:00
..
auth.rs feat: implement OAuth2 token exchange and AES-256-GCM encryption 2026-04-03 14:32:17 -05:00
azuredevops.rs feat: implement Confluence, ServiceNow, and Azure DevOps REST API clients 2026-04-03 15:43:37 -05:00
callback_server.rs feat: implement OAuth2 callback server with automatic token exchange 2026-04-03 14:59:39 -05:00
confluence.rs feat: implement Confluence, ServiceNow, and Azure DevOps REST API clients 2026-04-03 15:43:37 -05:00
mod.rs feat: add multi-mode authentication for integrations (v0.2.10) 2026-04-03 17:26:09 -05:00
servicenow.rs feat: implement Confluence, ServiceNow, and Azure DevOps REST API clients 2026-04-03 15:43:37 -05:00
webview_auth.rs feat: complete webview cookie extraction implementation 2026-04-03 17:31:48 -05:00