# svetaleksandrov/softuni-platform-certificate-exchange architecture

> Architecture diagram of the GitHub repository svetaleksandrov/softuni-platform-certificate-exchange, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/svetaleksandrov/softuni-platform-certificate-exchange
- Repository: https://github.com/svetaleksandrov/softuni-platform-certificate-exchange

## Overview

SecureCert Portal is an ASP.NET Core MVC portal for collecting public TLS certificates and managing their review. Admins create organizations and client accounts; clients sign in, change initial passwords, upload certificates, and track submissions; admins validate, review, and decide submissions, while authorized users inspect or download certificates. The map includes organization/user administration, authentication, validation, review and audit data, dashboards, and filtering. Relationships are limited to README statements and source-index or excerpt evidence; unsampled controller behavior is not inferred.

Main entry points: [`SoftUni Platform Certificate Exchange/Controllers/CertificatesController.cs`](https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Controllers/CertificatesController.cs) (Certificate submissions), [`SoftUni Platform Certificate Exchange/Data/ApplicationDbContext.cs`](https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Data/ApplicationDbContext.cs) (Entity Framework context), [`SoftUni Platform Certificate Exchange/Areas/Admin/Controllers/UsersController.cs`](https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Areas/Admin/Controllers/UsersController.cs) (Client account management), [`SoftUni Platform Certificate Exchange/Areas/Admin/Controllers/OrganizationsController.cs`](https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Areas/Admin/Controllers/OrganizationsController.cs) (Organization management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and accounts"]
  node_account["Account and passwords"]
  node_identity["Identity accounts<br/>[ApplicationUser.cs]"]
end

subgraph group_administration["Admin management"]
  node_org_admin["Organization management"]
  node_user_admin["Client account management<br/>[UsersController.cs]"]
  node_password_generator["Temporary passwords"]
  node_dashboard["Role dashboards"]
end

subgraph group_certificates["Certificate workflow"]
  node_certificate_controller["Certificate submissions"]
  node_validation["Certificate validation"]
  node_review_rules["Review rules"]
  node_file_store[("Certificate file storage")]
end

subgraph group_persistence["Domain and persistence"]
  node_organization["Organization<br/>[Organization.cs]"]
  node_submission["Certificate submission"]
  node_review["Review decision"]
  node_audit["Certificate audit events"]
  node_db_context["Entity Framework context"]
  node_sql[("SQL Server")]
end

subgraph group_interface["Portal interface"]
  node_filters["Table filtering"]
  node_live_filters["Live table filters"]
  node_home["Welcome page<br/>[HomeController.cs]"]
end

node_admin(("Admin"))
node_client(("Client"))

node_client -->|"signs in"| node_account
node_admin -->|"creates accounts"| node_user_admin
node_admin -->|"manages organizations"| node_org_admin
node_account -->|"authenticates users"| node_identity
node_user_admin -->|"generates passwords"| node_password_generator
node_user_admin -->|"creates accounts"| node_identity
node_org_admin -->|"reads and writes"| node_db_context
node_user_admin -->|"queries organizations"| node_db_context
node_client -->|"uploads certificates"| node_certificate_controller
node_admin -->|"reviews submissions"| node_certificate_controller
node_certificate_controller -->|"validates uploads"| node_validation
node_certificate_controller -->|"uses review rules"| node_review_rules
node_certificate_controller -->|"reads and writes"| node_db_context
node_certificate_controller -->|"stores and serves files"| node_file_store
node_certificate_controller -->|"records metadata"| node_submission
node_certificate_controller -->|"records decisions"| node_review
node_client -->|"views dashboard"| node_dashboard
node_admin -->|"views dashboard"| node_dashboard
node_db_context -->|"persists records"| node_sql
node_db_context -->|"maps entity"| node_organization
node_db_context -->|"maps entity"| node_submission
node_db_context -->|"maps entity"| node_review
node_db_context -->|"maps entity"| node_audit
node_org_admin -->|"normalizes filters"| node_filters
node_user_admin -->|"normalizes filters"| node_filters

click node_account "https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Controllers/AccountController.cs"
click node_identity "https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Models/ApplicationUser.cs"
click node_org_admin "https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Areas/Admin/Controllers/OrganizationsController.cs"
click node_user_admin "https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Areas/Admin/Controllers/UsersController.cs"
click node_password_generator "https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Services/TemporaryPasswordGenerator.cs"
click node_dashboard "https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Areas/Admin/Controllers/OverviewController.cs"
click node_certificate_controller "https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Controllers/CertificatesController.cs"
click node_validation "https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Services/CertificateValidationService.cs"
click node_review_rules "https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Services/CertificateReviewRules.cs"
click node_organization "https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Models/Organization.cs"
click node_submission "https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Models/CertificateSubmission.cs"
click node_review "https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Models/CertificateReview.cs"
click node_audit "https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Models/CertificateAuditEvent.cs"
click node_db_context "https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Data/ApplicationDbContext.cs"
click node_filters "https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Helpers/FilterInputHelper.cs"
click node_live_filters "https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/wwwroot/js/live-table-filters.js"
click node_home "https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Controllers/HomeController.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_account,node_identity,node_client toneBlue
class node_org_admin,node_user_admin,node_password_generator,node_dashboard toneAmber
class node_certificate_controller,node_validation,node_review_rules,node_file_store toneMint
class node_organization,node_submission,node_review,node_audit,node_db_context,node_sql toneRose
class node_filters,node_live_filters,node_home,node_admin toneIndigo
```

## Components

### Access and accounts

- [Account and passwords](https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Controllers/AccountController.cs): `SoftUni Platform Certificate Exchange/Controllers/AccountController.cs`
- [Identity accounts](https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Models/ApplicationUser.cs): `SoftUni Platform Certificate Exchange/Models/ApplicationUser.cs`

### Admin management

- [Organization management](https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Areas/Admin/Controllers/OrganizationsController.cs): `SoftUni Platform Certificate Exchange/Areas/Admin/Controllers/OrganizationsController.cs`
- [Client account management](https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Areas/Admin/Controllers/UsersController.cs): `SoftUni Platform Certificate Exchange/Areas/Admin/Controllers/UsersController.cs`
- [Temporary passwords](https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Services/TemporaryPasswordGenerator.cs): `SoftUni Platform Certificate Exchange/Services/TemporaryPasswordGenerator.cs`
- [Role dashboards](https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Areas/Admin/Controllers/OverviewController.cs): `SoftUni Platform Certificate Exchange/Areas/Admin/Controllers/OverviewController.cs`

### Certificate workflow

- [Certificate submissions](https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Controllers/CertificatesController.cs): `SoftUni Platform Certificate Exchange/Controllers/CertificatesController.cs`
- [Certificate validation](https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Services/CertificateValidationService.cs): `SoftUni Platform Certificate Exchange/Services/CertificateValidationService.cs`
- [Review rules](https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Services/CertificateReviewRules.cs): `SoftUni Platform Certificate Exchange/Services/CertificateReviewRules.cs`
- **Certificate file storage**

### Domain and persistence

- [Organization](https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Models/Organization.cs): `SoftUni Platform Certificate Exchange/Models/Organization.cs`
- [Certificate submission](https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Models/CertificateSubmission.cs): `SoftUni Platform Certificate Exchange/Models/CertificateSubmission.cs`
- [Review decision](https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Models/CertificateReview.cs): `SoftUni Platform Certificate Exchange/Models/CertificateReview.cs`
- [Certificate audit events](https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Models/CertificateAuditEvent.cs): `SoftUni Platform Certificate Exchange/Models/CertificateAuditEvent.cs`
- [Entity Framework context](https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Data/ApplicationDbContext.cs): `SoftUni Platform Certificate Exchange/Data/ApplicationDbContext.cs`
- **SQL Server**

### Portal interface

- [Table filtering](https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Helpers/FilterInputHelper.cs): `SoftUni Platform Certificate Exchange/Helpers/FilterInputHelper.cs`
- [Live table filters](https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/wwwroot/js/live-table-filters.js): `SoftUni Platform Certificate Exchange/wwwroot/js/live-table-filters.js`
- [Welcome page](https://github.com/svetaleksandrov/softuni-platform-certificate-exchange/blob/master/SoftUni%20Platform%20Certificate%20Exchange/Controllers/HomeController.cs): `SoftUni Platform Certificate Exchange/Controllers/HomeController.cs`

### Other components

- **Admin**
- **Client**

## Connections

- Client → Account and passwords: signs in (evidence: `README.md`)
- Admin → Client account management: creates accounts (evidence: `README.md`)
- Admin → Organization management: manages organizations (evidence: `README.md`)
- Account and passwords → Identity accounts: authenticates users (evidence: `SoftUni Platform Certificate Exchange/Controllers/AccountController.cs`)
- Client account management → Temporary passwords: generates passwords (evidence: `SoftUni Platform Certificate Exchange/Areas/Admin/Controllers/UsersController.cs`)
- Client account management → Identity accounts: creates accounts (evidence: `SoftUni Platform Certificate Exchange/Areas/Admin/Controllers/UsersController.cs`)
- Organization management → Entity Framework context: reads and writes (evidence: `SoftUni Platform Certificate Exchange/Areas/Admin/Controllers/OrganizationsController.cs`)
- Client account management → Entity Framework context: queries organizations (evidence: `SoftUni Platform Certificate Exchange/Areas/Admin/Controllers/UsersController.cs`)
- Client → Certificate submissions: uploads certificates (evidence: `README.md`)
- Admin → Certificate submissions: reviews submissions (evidence: `README.md`)
- Certificate submissions → Certificate validation: validates uploads (evidence: `SoftUni Platform Certificate Exchange/Controllers/CertificatesController.cs`)
- Certificate submissions → Review rules: uses review rules (evidence: `SoftUni Platform Certificate Exchange/Controllers/CertificatesController.cs`)
- Certificate submissions → Entity Framework context: reads and writes (evidence: `SoftUni Platform Certificate Exchange/Controllers/CertificatesController.cs`)
- Certificate submissions → Certificate file storage: stores and serves files (evidence: `README.md`)
- Certificate submissions → Certificate submission: records metadata (evidence: `README.md`)
- Certificate submissions → Review decision: records decisions (evidence: `README.md`)
- Client → Role dashboards: views dashboard (evidence: `README.md`)
- Admin → Role dashboards: views dashboard (evidence: `README.md`)
- Entity Framework context → SQL Server: persists records (evidence: `README.md`)
- Entity Framework context → Organization: maps entity (evidence: `SoftUni Platform Certificate Exchange/Data/ApplicationDbContext.cs`)
- Entity Framework context → Certificate submission: maps entity (evidence: `SoftUni Platform Certificate Exchange/Data/ApplicationDbContext.cs`)
- Entity Framework context → Review decision: maps entity (evidence: `SoftUni Platform Certificate Exchange/Data/ApplicationDbContext.cs`)
- Entity Framework context → Certificate audit events: maps entity (evidence: `SoftUni Platform Certificate Exchange/Data/ApplicationDbContext.cs`)
- Organization management → Table filtering: normalizes filters (evidence: `SoftUni Platform Certificate Exchange/Areas/Admin/Controllers/OrganizationsController.cs`)
- Client account management → Table filtering: normalizes filters (evidence: `SoftUni Platform Certificate Exchange/Areas/Admin/Controllers/UsersController.cs`)
