tftsr-devops_investigation/src-tauri/src
Shaun Arman fbce897608
Some checks failed
Release / build-macos-arm64 (push) Successful in 5m4s
Release / build-windows-amd64 (push) Has been cancelled
Release / build-linux-amd64 (push) Has been cancelled
Release / build-linux-arm64 (push) Has been cancelled
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
..
ai feat: add temperature and max_tokens support for Custom REST providers (v0.2.9) 2026-04-03 17:08:34 -05:00
audit style: apply cargo fmt formatting 2026-03-15 12:43:46 -05:00
commands feat: complete webview cookie extraction implementation 2026-04-03 17:31:48 -05:00
db feat: add database schema for integration credentials and config 2026-04-03 14:23:49 -05:00
docs fix: implement native DOCX export without pandoc dependency 2026-04-03 12:53:36 -05:00
integrations feat: complete webview cookie extraction implementation 2026-04-03 17:31:48 -05:00
ollama fix: provider routing uses provider_type, Active badge, fmt 2026-03-31 08:05:13 -05:00
pii fix: inline format args for Rust 1.88 clippy compatibility 2026-03-15 13:28:59 -05:00
lib.rs feat: add multi-mode authentication for integrations (v0.2.10) 2026-04-03 17:26:09 -05:00
main.rs feat: initial implementation of TFTSR IT Triage & RCA application 2026-03-14 22:36:25 -05:00
state.rs feat: add temperature and max_tokens support for Custom REST providers (v0.2.9) 2026-04-03 17:08:34 -05:00