# mygomindsrepo2026/entraidstudentwebapp architecture

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

- Interactive diagram: https://gitdiagram.com/mygomindsrepo2026/entraidstudentwebapp
- Repository: https://github.com/mygomindsrepo2026/entraidstudentwebapp

## Overview

StudentEntraMvcApp is an ASP.NET Core MVC web app with OpenID Connect sign-in and a protected dashboard. The main user journey is to request login, authenticate through an external identity provider, and arrive at the authorized dashboard; users can also sign out. Home and error pages form the public MVC experience. Program.cs and the views were not excerpted, so startup wiring and view-level relationships are not inferred; the graph shows only relationships evidenced by controller excerpts or the source index.

Main entry points: [`Controllers/HomeController.cs`](https://github.com/mygomindsrepo2026/entraidstudentwebapp/blob/main/Controllers/HomeController.cs) (Home actions), [`Controllers/AccountController.cs`](https://github.com/mygomindsrepo2026/entraidstudentwebapp/blob/main/Controllers/AccountController.cs) (Account actions), [`Controllers/DashboardController.cs`](https://github.com/mygomindsrepo2026/entraidstudentwebapp/blob/main/Controllers/DashboardController.cs) (Dashboard action), [`wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js`](https://github.com/mygomindsrepo2026/entraidstudentwebapp/blob/main/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js) (Unobtrusive validation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_mvc["MVC experience"]
  node_startup["App startup<br/>[Program.cs]"]
  node_home["Home actions<br/>[HomeController.cs]"]
  node_homeviews["Home views"]
  node_errorview["Error view<br/>[Error.cshtml]"]
  node_errormodel["Error model<br/>[ErrorViewModel.cs]"]
  node_dashboard["Dashboard action"]
  node_dashboardview["Dashboard view<br/>[Index.cshtml]"]
end

subgraph group_auth["Authentication"]
  node_account["Account actions"]
  node_identity{{"OIDC provider"}}
end

subgraph group_client["Client assets"]
  node_sitejs["Site script<br/>[site.js]"]
  node_unobtrusive["Unobtrusive validation"]
  node_jqueryvalidate["jQuery Validate<br/>[jquery.validate.js]"]
end

node_user(("Visitor"))

node_user -->|"requests pages"| node_home
node_user -->|"requests login"| node_account
node_account -->|"challenges / signs out"| node_identity
node_account -->|"sets return URL"| node_dashboard
node_account -->|"sets logout redirect"| node_home
node_dashboard -->|"renders"| node_dashboardview
node_home -->|"renders"| node_homeviews
node_home -->|"creates model"| node_errormodel
node_home -->|"renders error"| node_errorview
node_unobtrusive -->|"depends on"| node_jqueryvalidate

click node_startup "https://github.com/mygomindsrepo2026/entraidstudentwebapp/blob/main/Program.cs"
click node_home "https://github.com/mygomindsrepo2026/entraidstudentwebapp/blob/main/Controllers/HomeController.cs"
click node_homeviews "https://github.com/mygomindsrepo2026/entraidstudentwebapp/tree/main/Views/Home"
click node_errorview "https://github.com/mygomindsrepo2026/entraidstudentwebapp/blob/main/Views/Shared/Error.cshtml"
click node_errormodel "https://github.com/mygomindsrepo2026/entraidstudentwebapp/blob/main/Models/ErrorViewModel.cs"
click node_dashboard "https://github.com/mygomindsrepo2026/entraidstudentwebapp/blob/main/Controllers/DashboardController.cs"
click node_dashboardview "https://github.com/mygomindsrepo2026/entraidstudentwebapp/blob/main/Views/Dashboard/Index.cshtml"
click node_account "https://github.com/mygomindsrepo2026/entraidstudentwebapp/blob/main/Controllers/AccountController.cs"
click node_sitejs "https://github.com/mygomindsrepo2026/entraidstudentwebapp/blob/main/wwwroot/js/site.js"
click node_unobtrusive "https://github.com/mygomindsrepo2026/entraidstudentwebapp/blob/main/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js"
click node_jqueryvalidate "https://github.com/mygomindsrepo2026/entraidstudentwebapp/blob/main/wwwroot/lib/jquery-validation/dist/jquery.validate.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_startup,node_home,node_homeviews,node_errorview,node_errormodel,node_dashboard,node_dashboardview toneBlue
class node_account,node_identity toneAmber
class node_sitejs,node_unobtrusive,node_jqueryvalidate toneMint
class node_user toneIndigo
```

## Components

### MVC experience

- [App startup](https://github.com/mygomindsrepo2026/entraidstudentwebapp/blob/main/Program.cs): `Program.cs`
- [Home actions](https://github.com/mygomindsrepo2026/entraidstudentwebapp/blob/main/Controllers/HomeController.cs): `Controllers/HomeController.cs`
- [Home views](https://github.com/mygomindsrepo2026/entraidstudentwebapp/tree/main/Views/Home): `Views/Home`
- [Error view](https://github.com/mygomindsrepo2026/entraidstudentwebapp/blob/main/Views/Shared/Error.cshtml): `Views/Shared/Error.cshtml`
- [Error model](https://github.com/mygomindsrepo2026/entraidstudentwebapp/blob/main/Models/ErrorViewModel.cs): `Models/ErrorViewModel.cs`
- [Dashboard action](https://github.com/mygomindsrepo2026/entraidstudentwebapp/blob/main/Controllers/DashboardController.cs): `Controllers/DashboardController.cs`
- [Dashboard view](https://github.com/mygomindsrepo2026/entraidstudentwebapp/blob/main/Views/Dashboard/Index.cshtml): `Views/Dashboard/Index.cshtml`

### Authentication

- [Account actions](https://github.com/mygomindsrepo2026/entraidstudentwebapp/blob/main/Controllers/AccountController.cs): `Controllers/AccountController.cs`
- **OIDC provider**

### Client assets

- [Site script](https://github.com/mygomindsrepo2026/entraidstudentwebapp/blob/main/wwwroot/js/site.js): `wwwroot/js/site.js`
- [Unobtrusive validation](https://github.com/mygomindsrepo2026/entraidstudentwebapp/blob/main/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js): `wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js`
- [jQuery Validate](https://github.com/mygomindsrepo2026/entraidstudentwebapp/blob/main/wwwroot/lib/jquery-validation/dist/jquery.validate.js): `wwwroot/lib/jquery-validation/dist/jquery.validate.js`

### Other components

- **Visitor**

## Connections

- Visitor → Home actions: requests pages
- Visitor → Account actions: requests login
- Account actions → OIDC provider: challenges / signs out (evidence: `Controllers/AccountController.cs`)
- Account actions → Dashboard action: sets return URL (evidence: `Controllers/AccountController.cs`)
- Account actions → Home actions: sets logout redirect (evidence: `Controllers/AccountController.cs`)
- Dashboard action → Dashboard view: renders (evidence: `Controllers/DashboardController.cs`)
- Home actions → Home views: renders (evidence: `Controllers/HomeController.cs`)
- Home actions → Error model: creates model (evidence: `Controllers/HomeController.cs`)
- Home actions → Error view: renders error (evidence: `Controllers/HomeController.cs`)
- Unobtrusive validation → jQuery Validate: depends on (evidence: `wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js`)
