# nvgad/poc architecture

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

- Interactive diagram: https://gitdiagram.com/nvgad/poc
- Repository: https://github.com/nvgad/poc

## Overview

This repository is a collection of proof-of-concept Blazor applications, not one integrated product. The clearest end-to-end feature shown is the authenticated account experience in BlazorAppConfigs: the host registers Identity services and account endpoints, which support account actions and user-session validation. Other branches demonstrate Microsoft identity/Graph configuration, basic weather and counter pages, and an SSRS report proxy. The README gives no further product workflow. Some branches are represented from the tree and SOURCE INDEX only, so their internal links are omitted where implementation evidence is unavailable.

Main entry points: [`AnA/BlazorAppConfigs/Program.cs`](https://github.com/nvgad/poc/blob/main/AnA/BlazorAppConfigs/Program.cs) (Identity host), [`AnA/BlazorAppConfigs/Data/ApplicationUser.cs`](https://github.com/nvgad/poc/blob/main/AnA/BlazorAppConfigs/Data/ApplicationUser.cs) (Account user), [`AnA/Blazor_Graph_Authorize/Program.cs`](https://github.com/nvgad/poc/blob/main/AnA/Blazor_Graph_Authorize/Program.cs) (Graph auth host), [`AnA/BlazorAppConfigs/Data/ApplicationDbContext.cs`](https://github.com/nvgad/poc/blob/main/AnA/BlazorAppConfigs/Data/ApplicationDbContext.cs) (Identity store)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_account["Identity accounts"]
  node_user["Account user<br/>[ApplicationUser.cs]"]
  node_identity_db[("Identity store")]
  node_identity_host["Identity host<br/>[Program.cs]"]
  node_account_actions["Account endpoints"]
  node_user_accessor["User accessor"]
  node_redirect["Redirect manager"]
  node_session_validation["Session validation"]
  node_email_sender["Email sender"]
  node_account_pages["Account pages"]
end

subgraph group_auth["Cloud authentication"]
  node_graph_host["Graph auth host<br/>[Program.cs]"]
  node_tenant_host["Tenant auth host<br/>[Program.cs]"]
  node_poc_host["Blazor auth host<br/>[Program.cs]"]
end

subgraph group_demos["Blazor demos"]
  node_weather_service["Forecast service"]
  node_weather_data["Forecast model<br/>[WeatherForecast.cs]"]
  node_weather_page["Weather page<br/>[FetchData.razor]"]
end

subgraph group_reports["Reporting proxy"]
  node_report_controller["Report proxy"]
  node_upload_controller["Upload endpoint"]
end

node_identity_framework["ASP.NET Identity"]
node_sql_store[("SQL database")]
node_azure_vault[("Azure Key Vault")]
node_microsoft_graph["Microsoft Graph"]
node_report_server["SSRS server"]
node_browser_user(("App user"))

node_identity_host -->|"configures store"| node_identity_db
node_identity_host -->|"registers type"| node_user
node_identity_host -->|"maps endpoints"| node_account_actions
node_identity_host -->|"registers provider"| node_session_validation
node_identity_host -->|"registers service"| node_user_accessor
node_identity_host -->|"registers service"| node_redirect
node_identity_host -->|"registers sender"| node_email_sender
node_identity_host -->|"configures Identity"| node_identity_framework
node_identity_db -->|"stores users"| node_user
node_identity_host -->|"connects SQL"| node_sql_store
node_account_actions -->|"operates on"| node_user
node_user_accessor -->|"redirects missing user"| node_redirect
node_session_validation -->|"checks security stamp"| node_user
node_email_sender -->|"sends account mail"| node_user
node_browser_user -.->|"uses account app"| node_identity_host
node_graph_host -->|"reads secrets"| node_azure_vault
node_graph_host -->|"configures client"| node_microsoft_graph
node_tenant_host -->|"configures sign-in"| node_identity_framework
node_poc_host -->|"configures downstream API"| node_microsoft_graph
node_weather_page -.->|"uses forecasts"| node_weather_service
node_weather_service -->|"produces forecasts"| node_weather_data
node_browser_user -.->|"views weather"| node_weather_page
node_report_controller -->|"forwards requests"| node_report_server
node_browser_user -->|"requests report"| node_report_controller

click node_user "https://github.com/nvgad/poc/blob/main/AnA/BlazorAppConfigs/Data/ApplicationUser.cs"
click node_identity_db "https://github.com/nvgad/poc/blob/main/AnA/BlazorAppConfigs/Data/ApplicationDbContext.cs"
click node_identity_host "https://github.com/nvgad/poc/blob/main/AnA/BlazorAppConfigs/Program.cs"
click node_account_actions "https://github.com/nvgad/poc/blob/main/AnA/BlazorAppConfigs/Components/Account/IdentityComponentsEndpointRouteBuilderExtensions.cs"
click node_user_accessor "https://github.com/nvgad/poc/blob/main/AnA/BlazorAppConfigs/Components/Account/IdentityUserAccessor.cs"
click node_redirect "https://github.com/nvgad/poc/blob/main/AnA/BlazorAppConfigs/Components/Account/IdentityRedirectManager.cs"
click node_session_validation "https://github.com/nvgad/poc/blob/main/AnA/BlazorAppConfigs/Components/Account/IdentityRevalidatingAuthenticationStateProvider.cs"
click node_email_sender "https://github.com/nvgad/poc/blob/main/AnA/BlazorAppConfigs/Components/Account/IdentityNoOpEmailSender.cs"
click node_account_pages "https://github.com/nvgad/poc/tree/main/AnA/BlazorAppConfigs/Components/Account/Pages"
click node_graph_host "https://github.com/nvgad/poc/blob/main/AnA/Blazor_Graph_Authorize/Program.cs"
click node_tenant_host "https://github.com/nvgad/poc/blob/main/AnA/AnA_MultiTenant/Program.cs"
click node_poc_host "https://github.com/nvgad/poc/blob/main/BlazorAppTest3/BlazorAppTest3/Program.cs"
click node_weather_service "https://github.com/nvgad/poc/blob/main/ACATrials1/ACATrials1/Data/WeatherForecastService.cs"
click node_weather_data "https://github.com/nvgad/poc/blob/main/ACATrials1/ACATrials1/Data/WeatherForecast.cs"
click node_weather_page "https://github.com/nvgad/poc/blob/main/ACATrials1/ACATrials1/Pages/FetchData.razor"
click node_report_controller "https://github.com/nvgad/poc/blob/main/BlazorTrials/Server/Controllers/ReportController.cs"
click node_upload_controller "https://github.com/nvgad/poc/blob/main/BlazorTrials/Server/Controllers/UploadController.cs"

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_user,node_identity_db,node_identity_host,node_account_actions,node_user_accessor,node_redirect,node_session_validation,node_email_sender,node_account_pages,node_browser_user toneBlue
class node_graph_host,node_tenant_host,node_poc_host,node_sql_store,node_azure_vault toneAmber
class node_weather_service,node_weather_data,node_weather_page,node_report_server toneMint
class node_report_controller,node_upload_controller toneRose
class node_identity_framework,node_microsoft_graph toneIndigo
```

## Components

### Identity accounts

- [Account user](https://github.com/nvgad/poc/blob/main/AnA/BlazorAppConfigs/Data/ApplicationUser.cs): `AnA/BlazorAppConfigs/Data/ApplicationUser.cs`
- [Identity store](https://github.com/nvgad/poc/blob/main/AnA/BlazorAppConfigs/Data/ApplicationDbContext.cs): `AnA/BlazorAppConfigs/Data/ApplicationDbContext.cs`
- [Identity host](https://github.com/nvgad/poc/blob/main/AnA/BlazorAppConfigs/Program.cs): `AnA/BlazorAppConfigs/Program.cs`
- [Account endpoints](https://github.com/nvgad/poc/blob/main/AnA/BlazorAppConfigs/Components/Account/IdentityComponentsEndpointRouteBuilderExtensions.cs): `AnA/BlazorAppConfigs/Components/Account/IdentityComponentsEndpointRouteBuilderExtensions.cs`
- [User accessor](https://github.com/nvgad/poc/blob/main/AnA/BlazorAppConfigs/Components/Account/IdentityUserAccessor.cs): `AnA/BlazorAppConfigs/Components/Account/IdentityUserAccessor.cs`
- [Redirect manager](https://github.com/nvgad/poc/blob/main/AnA/BlazorAppConfigs/Components/Account/IdentityRedirectManager.cs): `AnA/BlazorAppConfigs/Components/Account/IdentityRedirectManager.cs`
- [Session validation](https://github.com/nvgad/poc/blob/main/AnA/BlazorAppConfigs/Components/Account/IdentityRevalidatingAuthenticationStateProvider.cs): `AnA/BlazorAppConfigs/Components/Account/IdentityRevalidatingAuthenticationStateProvider.cs`
- [Email sender](https://github.com/nvgad/poc/blob/main/AnA/BlazorAppConfigs/Components/Account/IdentityNoOpEmailSender.cs): `AnA/BlazorAppConfigs/Components/Account/IdentityNoOpEmailSender.cs`
- [Account pages](https://github.com/nvgad/poc/tree/main/AnA/BlazorAppConfigs/Components/Account/Pages): `AnA/BlazorAppConfigs/Components/Account/Pages`

### Cloud authentication

- [Graph auth host](https://github.com/nvgad/poc/blob/main/AnA/Blazor_Graph_Authorize/Program.cs): `AnA/Blazor_Graph_Authorize/Program.cs`
- [Tenant auth host](https://github.com/nvgad/poc/blob/main/AnA/AnA_MultiTenant/Program.cs): `AnA/AnA_MultiTenant/Program.cs`
- [Blazor auth host](https://github.com/nvgad/poc/blob/main/BlazorAppTest3/BlazorAppTest3/Program.cs): `BlazorAppTest3/BlazorAppTest3/Program.cs`

### Blazor demos

- [Forecast service](https://github.com/nvgad/poc/blob/main/ACATrials1/ACATrials1/Data/WeatherForecastService.cs): `ACATrials1/ACATrials1/Data/WeatherForecastService.cs`
- [Forecast model](https://github.com/nvgad/poc/blob/main/ACATrials1/ACATrials1/Data/WeatherForecast.cs): `ACATrials1/ACATrials1/Data/WeatherForecast.cs`
- [Weather page](https://github.com/nvgad/poc/blob/main/ACATrials1/ACATrials1/Pages/FetchData.razor): `ACATrials1/ACATrials1/Pages/FetchData.razor`

### Reporting proxy

- [Report proxy](https://github.com/nvgad/poc/blob/main/BlazorTrials/Server/Controllers/ReportController.cs): `BlazorTrials/Server/Controllers/ReportController.cs`
- [Upload endpoint](https://github.com/nvgad/poc/blob/main/BlazorTrials/Server/Controllers/UploadController.cs): `BlazorTrials/Server/Controllers/UploadController.cs`

### Other components

- **ASP.NET Identity**
- **SQL database**
- **Azure Key Vault**
- **Microsoft Graph**
- **SSRS server**
- **App user**

## Connections

- Identity host → Identity store: configures store (evidence: `AnA/BlazorAppConfigs/Program.cs`)
- Identity host → Account user: registers type (evidence: `AnA/BlazorAppConfigs/Program.cs`)
- Identity host → Account endpoints: maps endpoints (evidence: `AnA/BlazorAppConfigs/Program.cs`)
- Identity host → Session validation: registers provider (evidence: `AnA/BlazorAppConfigs/Program.cs`)
- Identity host → User accessor: registers service (evidence: `AnA/BlazorAppConfigs/Program.cs`)
- Identity host → Redirect manager: registers service (evidence: `AnA/BlazorAppConfigs/Program.cs`)
- Identity host → Email sender: registers sender (evidence: `AnA/BlazorAppConfigs/Program.cs`)
- Identity host → ASP.NET Identity: configures Identity (evidence: `AnA/BlazorAppConfigs/Program.cs`)
- Identity store → Account user: stores users (evidence: `AnA/BlazorAppConfigs/Data/ApplicationDbContext.cs`)
- Identity host → SQL database: connects SQL (evidence: `AnA/BlazorAppConfigs/Program.cs`)
- Account endpoints → Account user: operates on (evidence: `AnA/BlazorAppConfigs/Components/Account/IdentityComponentsEndpointRouteBuilderExtensions.cs`)
- User accessor → Redirect manager: redirects missing user (evidence: `AnA/BlazorAppConfigs/Components/Account/IdentityUserAccessor.cs`)
- Session validation → Account user: checks security stamp (evidence: `AnA/BlazorAppConfigs/Components/Account/IdentityRevalidatingAuthenticationStateProvider.cs`)
- Email sender → Account user: sends account mail (evidence: `AnA/BlazorAppConfigs/Components/Account/IdentityNoOpEmailSender.cs`)
- App user → Identity host: uses account app
- Graph auth host → Azure Key Vault: reads secrets (evidence: `AnA/Blazor_Graph_Authorize/Program.cs`)
- Graph auth host → Microsoft Graph: configures client (evidence: `AnA/Blazor_Graph_Authorize/Program.cs`)
- Tenant auth host → ASP.NET Identity: configures sign-in (evidence: `AnA/AnA_MultiTenant/Program.cs`)
- Blazor auth host → Microsoft Graph: configures downstream API (evidence: `BlazorAppTest3/BlazorAppTest3/Program.cs`)
- Weather page → Forecast service: uses forecasts
- Forecast service → Forecast model: produces forecasts (evidence: `ACATrials1/ACATrials1/Data/WeatherForecastService.cs`)
- App user → Weather page: views weather
- Report proxy → SSRS server: forwards requests (evidence: `BlazorTrials/Server/Controllers/ReportController.cs`)
- App user → Report proxy: requests report (evidence: `BlazorTrials/Server/Controllers/ReportController.cs`)
