{
  "generatedAt": "2026-05-25T11:35:21.791Z",
  "runId": "v4-1779707139870-rlu0248l",
  "document": {
    "filename": "authentication-and-account.md",
    "title": "Authentication, Authorization and Account Flows",
    "kind": "security",
    "scopeDescription": "Capture identity and auth responsibilities: server-side identity services, token limits/requirements, authorization handlers/requirements, client authentication state provider and account pages.",
    "relativeOutputPath": "flows/authentication-and-account.md",
    "publicationTier": "secondary",
    "collectionId": "flows:flows",
    "collectionKind": "flows"
  },
  "contextBag": {
    "id": "authentication_and_account_md",
    "bagType": "auth",
    "title": "Authentication, Authorization and Account Flows context bag",
    "anchorFiles": [
      "NexusReader.Application/Abstractions/Services/IIdentityService.cs"
    ],
    "includedFiles": [
      {
        "path": "NexusReader.Infrastructure/Identity/TokenLimitHandler.cs",
        "reason": "Included because it likely stabilizes the contracts or business data in this scope",
        "source": "type-reference"
      },
      {
        "path": "NexusReader.Application/Abstractions/Services/IIdentityService.cs",
        "reason": "Selected as an entrypoint anchor for this flow scope",
        "source": "entrypoint"
      },
      {
        "path": "NexusReader.Application/Security/Authorization/ProUserHandler.cs",
        "reason": "Included because it likely participates in the core orchestration path",
        "source": "scope"
      },
      {
        "path": "NexusReader.Infrastructure/Identity/TokenLimitRequirement.cs",
        "reason": "Included because it likely stabilizes the contracts or business data in this scope",
        "source": "type-reference"
      },
      {
        "path": "NexusReader.Web.Client/Handlers/AuthenticationHeaderHandler.cs",
        "reason": "Included because it likely participates in the core orchestration path",
        "source": "scope"
      },
      {
        "path": "NexusReader.Application/Security/Authorization/ProUserRequirement.cs",
        "reason": "Included because it belongs to the resolved document scope",
        "source": "scope"
      },
      {
        "path": "NexusReader.UI.Shared/Services/NexusAuthenticationStateProvider.cs",
        "reason": "Included because it likely participates in the core orchestration path",
        "source": "scope"
      },
      {
        "path": "NexusReader.Web/Services/NativeStorageService.cs",
        "reason": "Included because it likely participates in the core orchestration path",
        "source": "scope"
      },
      {
        "path": "NexusReader.Web/Services/ServerIdentityService.cs",
        "reason": "Included because it likely stabilizes the contracts or business data in this scope",
        "source": "type-reference"
      },
      {
        "path": "NexusReader.UI.Shared/Pages/Account/Register.razor",
        "reason": "Included because it belongs to the resolved document scope",
        "source": "scope"
      },
      {
        "path": "NexusReader.UI.Shared/Pages/Account/Login.razor",
        "reason": "Included because it belongs to the resolved document scope",
        "source": "scope"
      },
      {
        "path": "NexusReader.UI.Shared/Pages/Account/Profile.razor",
        "reason": "Included because it belongs to the resolved document scope",
        "source": "scope"
      },
      {
        "path": "NexusReader.UI.Shared/Components/Atoms/NexusIcon.razor",
        "reason": "Included because it is called by an anchor method (call-chain widening)",
        "source": "call-chain"
      }
    ],
    "relatedDomains": [
      "auth",
      "account"
    ],
    "relatedEntrypoints": [
      "NexusReader.Application/Abstractions/Services/IIdentityService.cs"
    ],
    "confidence": 0.6200000000000001
  }
}