You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: update READMEs with accurate setup instructions and troubleshooting
- VS Code README: complete rewrite with step-by-step setup, browser
launch commands for Chromium/Chrome/Edge/macOS, mock OIDC server
instructions, troubleshooting section, and handleMessage pipeline
documentation
- Root README: fix VS Code quick start to use --extensionDevelopmentPath
instead of F5, add --user-data-dir note for separate browser instance
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Then launch a Chromium-based browser with remote debugging enabled (**must be a separate instance** — use `--user-data-dir` to avoid conflicts with your normal browser):
In the VS Code window, run `Ctrl+Shift+P` → **"OIDC DevTools: Start Capture"** → enter `9222`. Auth-related events will appear in the Timeline as you browse.
47
56
48
-
See the [VS Code extension README](packages/vscode-extension) for details.
57
+
See the [VS Code extension README](packages/vscode-extension) for detailed setup, troubleshooting, and the mock OIDC server for testing.
VS Code extension for live OIDC/OAuth2 debugging. Connects to Chrome via the Chrome DevTools Protocol (CDP) to capture and analyze authentication flows without leaving your editor.
3
+
VS Code extension for live OIDC/OAuth2 debugging. Connects to Chrome/Chromium via the Chrome DevTools Protocol (CDP) to capture and analyze authentication flows without leaving your editor.
This opens a VS Code window with the extension loaded. You should see the **OIDC DevTools** icon in the Activity Bar (left sidebar).
41
+
42
+
### 3. Launch your browser with remote debugging
43
+
44
+
**Important:** This must be a separate browser instance. If your normal browser is already running, the debug port flag gets silently ignored. Use `--user-data-dir` to force a new instance.
Then connect from VS Code and click **"Start OIDC Flow"** in the browser. You'll see discovery, token, and userinfo events captured in the Timeline.
90
+
91
+
## Troubleshooting
92
+
93
+
### "Failed to connect"
94
+
95
+
- Verify the browser is running with `--remote-debugging-port=9222`
96
+
- Verify with `curl http://localhost:9222/json` — you should see JSON output
97
+
- If your normal browser is already running, the debug port is silently ignored. Use `--user-data-dir=/tmp/oidc-devtools-test` to force a separate instance.
98
+
99
+
### Commands not appearing in the palette
100
+
101
+
- Make sure you launched VS Code with `--extensionDevelopmentPath=...` pointing to the `packages/vscode-extension` directory
102
+
- The extension must be built first (`pnpm build` from the repo root)
103
+
104
+
### No events appearing
105
+
106
+
- The extension only captures auth-related requests (URLs matching `/authorize`, `/token`, `/userinfo`, `/.well-known/openid-configuration`, etc.)
107
+
- Non-auth traffic (static assets, API calls) is filtered out
108
+
- Check that the browser has an open tab with `http://` or `https://` URL (DevTools pages and `chrome://` URLs are filtered)
109
+
41
110
## Commands
42
111
43
112
| Command | Description |
44
113
|---------|-------------|
45
-
| OIDC DevTools: Start Capture | Connect to Chrome and begin capturing |
46
-
| OIDC DevTools: Stop Capture | Disconnect from Chrome |
114
+
| OIDC DevTools: Start Capture | Connect to browser and begin capturing |
115
+
| OIDC DevTools: Stop Capture | Disconnect |
47
116
| OIDC DevTools: Clear Events | Clear the timeline |
48
117
| OIDC DevTools: Export Flow | Export as JSON or Markdown |
The extension connects to Chrome's debug WebSocket, subscribes to the `Network` domain for HTTP traffic, and injects a small script to capture SDK events. Captured events flow through the same annotation pipeline and diagnosis engine as the browser extension (`@wolfcola/devtools-core`). The Elm UI (`@wolfcola/devtools-ui`) renders in a WebView with VS Code theme colors mapped to the panel's CSS variables.
136
+
The extension runs the exact same `handleMessage` pipeline as the browser extension's service worker. Events flow through the same annotation engine, OIDC discovery, and diagnosis rules. The only difference is the transport: CDP WebSocket instead of `chrome.devtools.network`.
0 commit comments