# darrenjrobinson/entraauthtracer architecture

> Architecture diagram of the GitHub repository darrenjrobinson/entraauthtracer, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/darrenjrobinson/entraauthtracer
- Repository: https://github.com/darrenjrobinson/entraauthtracer

## Overview

Entra Auth Tracer is a Chromium extension that captures authentication traffic, analyzes protocol-specific requests, and presents a searchable timeline with detailed findings and export options. The main path runs from browser network events through the background capture service into the popup, where requests can be inspected, correlated, and exported. The README also documents broad OAuth/OIDC, SAML/WS-Federation, FIDO2, Entra claims, and Verified ID capabilities. Some wiring is established only by documented behavior or module references; those limits are reflected by omitted or unverified edges.

Main entry points: [`src/ui.js`](https://github.com/darrenjrobinson/entraauthtracer/blob/main/src/ui.js) (Popup Interface), [`src/SAMLTrace.js`](https://github.com/darrenjrobinson/entraauthtracer/blob/main/src/SAMLTrace.js) (Request Capture), [`src/background.js`](https://github.com/darrenjrobinson/entraauthtracer/blob/main/src/background.js) (Background Service), [`src/Exporters.js`](https://github.com/darrenjrobinson/entraauthtracer/blob/main/src/Exporters.js) (Report Exporters)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_capture["Capture &amp; State"]
  node_background["Background Service<br/>[background.js]"]
  node_capture_engine["Request Capture<br/>[SAMLTrace.js]"]
end

subgraph group_protocols["Protocol Analysis"]
  node_oauth["OAuth Analysis<br/>[OAuthDecoder.js]"]
  node_saml_capture["SAML Detection<br/>[SAMLTrace.js]"]
  node_saml_decode["SAML Decoder<br/>[SamlDecoder.js]"]
  node_fido["FIDO2 Decoder<br/>[Fido2Decoder.js]"]
  node_verified["Verified ID Analysis"]
  node_claims["Entra Claims"]
end

subgraph group_inspection["Inspection &amp; Reporting"]
  node_correlator["Flow Correlation<br/>[FlowCorrelator.js]"]
  node_popup["Popup Interface<br/>[ui.js]"]
  node_ui_entry["UI Entry<br/>[ui.main.js]"]
  node_exporters["Report Exporters<br/>[Exporters.js]"]
end

subgraph group_shared["Shared Safety"]
  node_sanitize["Redaction Helpers<br/>[Sanitize.js]"]
end

node_browser(("Browser Traffic"))
node_user(("Extension User"))

node_browser -->|"sends events"| node_capture_engine
node_background -->|"initializes"| node_capture_engine
node_capture_engine -->|"detects traffic"| node_saml_capture
node_capture_engine -->|"analyzes OAuth"| node_oauth
node_capture_engine -->|"analyzes FIDO2"| node_fido
node_capture_engine -->|"analyzes DID"| node_verified
node_user -->|"opens"| node_popup
node_popup -.->|"requests state"| node_background
node_ui_entry -->|"loads"| node_popup
node_popup -->|"decodes claims"| node_claims
node_popup -->|"renders analysis"| node_oauth
node_popup -->|"renders SAML"| node_saml_decode
node_popup -->|"groups requests"| node_correlator
node_popup -->|"builds reports"| node_exporters
node_popup -->|"redacts display"| node_sanitize
node_exporters -->|"redacts exports"| node_sanitize

click node_background "https://github.com/darrenjrobinson/entraauthtracer/blob/main/src/background.js"
click node_capture_engine "https://github.com/darrenjrobinson/entraauthtracer/blob/main/src/SAMLTrace.js"
click node_oauth "https://github.com/darrenjrobinson/entraauthtracer/blob/main/src/OAuthDecoder.js"
click node_saml_capture "https://github.com/darrenjrobinson/entraauthtracer/blob/main/src/SAMLTrace.js"
click node_saml_decode "https://github.com/darrenjrobinson/entraauthtracer/blob/main/src/SamlDecoder.js"
click node_fido "https://github.com/darrenjrobinson/entraauthtracer/blob/main/src/Fido2Decoder.js"
click node_verified "https://github.com/darrenjrobinson/entraauthtracer/blob/main/src/VerifiedIdDecoder.js"
click node_correlator "https://github.com/darrenjrobinson/entraauthtracer/blob/main/src/FlowCorrelator.js"
click node_popup "https://github.com/darrenjrobinson/entraauthtracer/blob/main/src/ui.js"
click node_ui_entry "https://github.com/darrenjrobinson/entraauthtracer/blob/main/src/ui.main.js"
click node_claims "https://github.com/darrenjrobinson/entraauthtracer/blob/main/src/EntraClaimsDecoder.js"
click node_exporters "https://github.com/darrenjrobinson/entraauthtracer/blob/main/src/Exporters.js"
click node_sanitize "https://github.com/darrenjrobinson/entraauthtracer/blob/main/src/Sanitize.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_background,node_capture_engine,node_browser,node_user toneBlue
class node_oauth,node_saml_capture,node_saml_decode,node_fido,node_verified,node_claims toneAmber
class node_correlator,node_popup,node_ui_entry,node_exporters toneMint
class node_sanitize toneRose
```

## Components

### Capture & State

- [Background Service](https://github.com/darrenjrobinson/entraauthtracer/blob/main/src/background.js): `src/background.js`
- [Request Capture](https://github.com/darrenjrobinson/entraauthtracer/blob/main/src/SAMLTrace.js): `src/SAMLTrace.js`

### Protocol Analysis

- [OAuth Analysis](https://github.com/darrenjrobinson/entraauthtracer/blob/main/src/OAuthDecoder.js): `src/OAuthDecoder.js`
- [SAML Detection](https://github.com/darrenjrobinson/entraauthtracer/blob/main/src/SAMLTrace.js): `src/SAMLTrace.js`
- [SAML Decoder](https://github.com/darrenjrobinson/entraauthtracer/blob/main/src/SamlDecoder.js): `src/SamlDecoder.js`
- [FIDO2 Decoder](https://github.com/darrenjrobinson/entraauthtracer/blob/main/src/Fido2Decoder.js): `src/Fido2Decoder.js`
- [Verified ID Analysis](https://github.com/darrenjrobinson/entraauthtracer/blob/main/src/VerifiedIdDecoder.js): `src/VerifiedIdDecoder.js`
- [Entra Claims](https://github.com/darrenjrobinson/entraauthtracer/blob/main/src/EntraClaimsDecoder.js): `src/EntraClaimsDecoder.js`

### Inspection & Reporting

- [Flow Correlation](https://github.com/darrenjrobinson/entraauthtracer/blob/main/src/FlowCorrelator.js): `src/FlowCorrelator.js`
- [Popup Interface](https://github.com/darrenjrobinson/entraauthtracer/blob/main/src/ui.js): `src/ui.js`
- [UI Entry](https://github.com/darrenjrobinson/entraauthtracer/blob/main/src/ui.main.js): `src/ui.main.js`
- [Report Exporters](https://github.com/darrenjrobinson/entraauthtracer/blob/main/src/Exporters.js): `src/Exporters.js`

### Shared Safety

- [Redaction Helpers](https://github.com/darrenjrobinson/entraauthtracer/blob/main/src/Sanitize.js): `src/Sanitize.js`

### Other components

- **Browser Traffic**
- **Extension User**

## Connections

- Browser Traffic → Request Capture: sends events (evidence: `src/SAMLTrace.js`)
- Background Service → Request Capture: initializes (evidence: `src/background.js`)
- Request Capture → SAML Detection: detects traffic (evidence: `src/SAMLTrace.js`)
- Request Capture → OAuth Analysis: analyzes OAuth (evidence: `src/SAMLTrace.js`)
- Request Capture → FIDO2 Decoder: analyzes FIDO2 (evidence: `src/SAMLTrace.js`)
- Request Capture → Verified ID Analysis: analyzes DID (evidence: `src/SAMLTrace.js`)
- Extension User → Popup Interface: opens (evidence: `README.md`)
- Popup Interface → Background Service: requests state
- UI Entry → Popup Interface: loads (evidence: `src/ui.main.js`)
- Popup Interface → Entra Claims: decodes claims (evidence: `src/ui.js`)
- Popup Interface → OAuth Analysis: renders analysis (evidence: `src/ui.js`)
- Popup Interface → SAML Decoder: renders SAML (evidence: `src/ui.js`)
- Popup Interface → Flow Correlation: groups requests (evidence: `src/ui.js`)
- Popup Interface → Report Exporters: builds reports (evidence: `src/ui.js`)
- Popup Interface → Redaction Helpers: redacts display (evidence: `src/ui.js`)
- Report Exporters → Redaction Helpers: redacts exports (evidence: `src/Exporters.js`)
