# dinesh-mane/spring-security-projects architecture

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

- Interactive diagram: https://gitdiagram.com/dinesh-mane/spring-security-projects
- Repository: https://github.com/dinesh-mane/spring-security-projects

## Overview

This repository is a set of Spring Security learning projects, alongside a ManeBank Angular UI and a separate MVC contact example. The bank workflow is represented by the UI’s registered account, balance, cards, loans, notices, and login components; the backend examples progress from endpoint security to registration and database-backed customer handling. The sampled registration code shows password encoding and service delegation. Evidence is limited: most Angular component bodies and security configurations were not sampled, so their runtime connections are not asserted.

Main entry points: [`21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/app.module.ts`](https://github.com/dinesh-mane/spring-security-projects/blob/main/21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/app.module.ts) (Angular app module), [`09-new-user-registration/src/main/java/com/dineshmane/project/controller/publicEndpoints/UserController.java`](https://github.com/dinesh-mane/spring-security-projects/blob/main/09-new-user-registration/src/main/java/com/dineshmane/project/controller/publicEndpoints/UserController.java) (Registration endpoint), [`19-form-login-configs-for-mvc-and-monolithic-apps/mane-academy/src/main/java/com/dineshmane/service/ContactService.java`](https://github.com/dinesh-mane/spring-security-projects/blob/main/19-form-login-configs-for-mvc-and-monolithic-apps/mane-academy/src/main/java/com/dineshmane/service/ContactService.java) (Contact service), [`19-form-login-configs-for-mvc-and-monolithic-apps/mane-academy/src/main/java/com/dineshmane/controller/ContactController.java`](https://github.com/dinesh-mane/spring-security-projects/blob/main/19-form-login-configs-for-mvc-and-monolithic-apps/mane-academy/src/main/java/com/dineshmane/controller/ContactController.java) (Contact controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_bank_ui["Bank interface"]
  node_app_module["Angular app module<br/>[app.module.ts]"]
  node_dashboard["Dashboard"]
  node_login["Login<br/>[login.component.ts]"]
  node_logout["Logout"]
  node_home["Home<br/>[home.component.ts]"]
  node_account["Account"]
  node_balance["Balance"]
  node_cards["Cards<br/>[cards.component.ts]"]
  node_loans["Loans<br/>[loans.component.ts]"]
  node_contact_ui["Contact UI"]
  node_notices["Notices"]
  node_auth_guard["Auth guard<br/>[auth.routeguard.ts]"]
  node_dashboard_service["Dashboard service"]
  node_request_interceptor["Request interceptor"]
end

subgraph group_security_api["Security API lessons"]
  node_security_config["Security configuration"]
  node_protected_api["Protected endpoints"]
  node_public_api["Public endpoints"]
end

subgraph group_registration["Customer registration"]
  node_registration_controller["Registration endpoint"]
  node_password_encoder["Password encoder"]
  node_customer_service["Customer service"]
  node_customer_entity["Customer record<br/>[Customer.java]"]
end

subgraph group_mvc_contact["MVC contact"]
  node_contact_controller["Contact controller"]
  node_contact_service["Contact service"]
  node_contact_model["Contact model<br/>[Contact.java]"]
end

node_user(("User"))

node_user -.->|"uses"| node_app_module
node_app_module -->|"declares"| node_dashboard
node_app_module -->|"declares"| node_login
node_app_module -->|"declares"| node_logout
node_app_module -->|"declares"| node_home
node_app_module -->|"declares"| node_account
node_app_module -->|"declares"| node_balance
node_app_module -->|"declares"| node_cards
node_app_module -->|"declares"| node_loans
node_app_module -->|"declares"| node_contact_ui
node_app_module -->|"declares"| node_notices
node_app_module -->|"provides"| node_auth_guard
node_app_module -->|"registers"| node_request_interceptor
node_registration_controller -->|"encodes password"| node_password_encoder
node_registration_controller -->|"saves user"| node_customer_service
node_registration_controller -->|"accepts"| node_customer_entity
node_contact_controller -->|"delegates"| node_contact_service
node_contact_service -->|"logs"| node_contact_model

click node_app_module "https://github.com/dinesh-mane/spring-security-projects/blob/main/21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/app.module.ts"
click node_dashboard "https://github.com/dinesh-mane/spring-security-projects/blob/main/21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/components/dashboard/dashboard.component.ts"
click node_login "https://github.com/dinesh-mane/spring-security-projects/blob/main/21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/components/login/login.component.ts"
click node_logout "https://github.com/dinesh-mane/spring-security-projects/blob/main/21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/components/logout/logout.component.ts"
click node_home "https://github.com/dinesh-mane/spring-security-projects/blob/main/21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/components/home/home.component.ts"
click node_account "https://github.com/dinesh-mane/spring-security-projects/blob/main/21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/components/account/account.component.ts"
click node_balance "https://github.com/dinesh-mane/spring-security-projects/blob/main/21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/components/balance/balance.component.ts"
click node_cards "https://github.com/dinesh-mane/spring-security-projects/blob/main/21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/components/cards/cards.component.ts"
click node_loans "https://github.com/dinesh-mane/spring-security-projects/blob/main/21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/components/loans/loans.component.ts"
click node_contact_ui "https://github.com/dinesh-mane/spring-security-projects/blob/main/21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/components/contact/contact.component.ts"
click node_notices "https://github.com/dinesh-mane/spring-security-projects/blob/main/21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/components/notices/notices.component.ts"
click node_auth_guard "https://github.com/dinesh-mane/spring-security-projects/blob/main/21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/routeguards/auth.routeguard.ts"
click node_dashboard_service "https://github.com/dinesh-mane/spring-security-projects/blob/main/21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/services/dashboard/dashboard.service.ts"
click node_request_interceptor "https://github.com/dinesh-mane/spring-security-projects/blob/main/21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/interceptors/app.request.interceptor.ts"
click node_security_config "https://github.com/dinesh-mane/spring-security-projects/blob/main/04-customize-http-requests-authorization/src/main/java/com/dineshmane/project/config/ProjectSecurityConfig.java"
click node_protected_api "https://github.com/dinesh-mane/spring-security-projects/tree/main/04-customize-http-requests-authorization/src/main/java/com/dineshmane/project/controller/protectedEndpoints"
click node_public_api "https://github.com/dinesh-mane/spring-security-projects/tree/main/04-customize-http-requests-authorization/src/main/java/com/dineshmane/project/controller/publicEndpoints"
click node_registration_controller "https://github.com/dinesh-mane/spring-security-projects/blob/main/09-new-user-registration/src/main/java/com/dineshmane/project/controller/publicEndpoints/UserController.java"
click node_customer_service "https://github.com/dinesh-mane/spring-security-projects/blob/main/09-new-user-registration/src/main/java/com/dineshmane/project/service/CustomerService.java"
click node_customer_entity "https://github.com/dinesh-mane/spring-security-projects/blob/main/09-new-user-registration/src/main/java/com/dineshmane/project/entity/Customer.java"
click node_contact_controller "https://github.com/dinesh-mane/spring-security-projects/blob/main/19-form-login-configs-for-mvc-and-monolithic-apps/mane-academy/src/main/java/com/dineshmane/controller/ContactController.java"
click node_contact_service "https://github.com/dinesh-mane/spring-security-projects/blob/main/19-form-login-configs-for-mvc-and-monolithic-apps/mane-academy/src/main/java/com/dineshmane/service/ContactService.java"
click node_contact_model "https://github.com/dinesh-mane/spring-security-projects/blob/main/19-form-login-configs-for-mvc-and-monolithic-apps/mane-academy/src/main/java/com/dineshmane/model/Contact.java"

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_app_module,node_dashboard,node_login,node_logout,node_home,node_account,node_balance,node_cards,node_loans,node_contact_ui,node_notices,node_auth_guard,node_dashboard_service,node_request_interceptor,node_user toneBlue
class node_security_config,node_protected_api,node_public_api toneAmber
class node_registration_controller,node_password_encoder,node_customer_service,node_customer_entity toneMint
class node_contact_controller,node_contact_service,node_contact_model toneRose
```

## Components

### Bank interface

- [Angular app module](https://github.com/dinesh-mane/spring-security-projects/blob/main/21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/app.module.ts): `21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/app.module.ts`
- [Dashboard](https://github.com/dinesh-mane/spring-security-projects/blob/main/21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/components/dashboard/dashboard.component.ts): `21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/components/dashboard/dashboard.component.ts`
- [Login](https://github.com/dinesh-mane/spring-security-projects/blob/main/21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/components/login/login.component.ts): `21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/components/login/login.component.ts`
- [Logout](https://github.com/dinesh-mane/spring-security-projects/blob/main/21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/components/logout/logout.component.ts): `21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/components/logout/logout.component.ts`
- [Home](https://github.com/dinesh-mane/spring-security-projects/blob/main/21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/components/home/home.component.ts): `21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/components/home/home.component.ts`
- [Account](https://github.com/dinesh-mane/spring-security-projects/blob/main/21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/components/account/account.component.ts): `21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/components/account/account.component.ts`
- [Balance](https://github.com/dinesh-mane/spring-security-projects/blob/main/21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/components/balance/balance.component.ts): `21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/components/balance/balance.component.ts`
- [Cards](https://github.com/dinesh-mane/spring-security-projects/blob/main/21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/components/cards/cards.component.ts): `21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/components/cards/cards.component.ts`
- [Loans](https://github.com/dinesh-mane/spring-security-projects/blob/main/21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/components/loans/loans.component.ts): `21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/components/loans/loans.component.ts`
- [Contact UI](https://github.com/dinesh-mane/spring-security-projects/blob/main/21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/components/contact/contact.component.ts): `21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/components/contact/contact.component.ts`
- [Notices](https://github.com/dinesh-mane/spring-security-projects/blob/main/21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/components/notices/notices.component.ts): `21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/components/notices/notices.component.ts`
- [Auth guard](https://github.com/dinesh-mane/spring-security-projects/blob/main/21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/routeguards/auth.routeguard.ts): `21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/routeguards/auth.routeguard.ts`
- [Dashboard service](https://github.com/dinesh-mane/spring-security-projects/blob/main/21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/services/dashboard/dashboard.service.ts): `21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/services/dashboard/dashboard.service.ts`
- [Request interceptor](https://github.com/dinesh-mane/spring-security-projects/blob/main/21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/interceptors/app.request.interceptor.ts): `21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/interceptors/app.request.interceptor.ts`

### Security API lessons

- [Security configuration](https://github.com/dinesh-mane/spring-security-projects/blob/main/04-customize-http-requests-authorization/src/main/java/com/dineshmane/project/config/ProjectSecurityConfig.java): `04-customize-http-requests-authorization/src/main/java/com/dineshmane/project/config/ProjectSecurityConfig.java`
- [Protected endpoints](https://github.com/dinesh-mane/spring-security-projects/tree/main/04-customize-http-requests-authorization/src/main/java/com/dineshmane/project/controller/protectedEndpoints): `04-customize-http-requests-authorization/src/main/java/com/dineshmane/project/controller/protectedEndpoints`
- [Public endpoints](https://github.com/dinesh-mane/spring-security-projects/tree/main/04-customize-http-requests-authorization/src/main/java/com/dineshmane/project/controller/publicEndpoints): `04-customize-http-requests-authorization/src/main/java/com/dineshmane/project/controller/publicEndpoints`

### Customer registration

- [Registration endpoint](https://github.com/dinesh-mane/spring-security-projects/blob/main/09-new-user-registration/src/main/java/com/dineshmane/project/controller/publicEndpoints/UserController.java): `09-new-user-registration/src/main/java/com/dineshmane/project/controller/publicEndpoints/UserController.java`
- **Password encoder**
- [Customer service](https://github.com/dinesh-mane/spring-security-projects/blob/main/09-new-user-registration/src/main/java/com/dineshmane/project/service/CustomerService.java): `09-new-user-registration/src/main/java/com/dineshmane/project/service/CustomerService.java`
- [Customer record](https://github.com/dinesh-mane/spring-security-projects/blob/main/09-new-user-registration/src/main/java/com/dineshmane/project/entity/Customer.java): `09-new-user-registration/src/main/java/com/dineshmane/project/entity/Customer.java`

### MVC contact

- [Contact controller](https://github.com/dinesh-mane/spring-security-projects/blob/main/19-form-login-configs-for-mvc-and-monolithic-apps/mane-academy/src/main/java/com/dineshmane/controller/ContactController.java): `19-form-login-configs-for-mvc-and-monolithic-apps/mane-academy/src/main/java/com/dineshmane/controller/ContactController.java`
- [Contact service](https://github.com/dinesh-mane/spring-security-projects/blob/main/19-form-login-configs-for-mvc-and-monolithic-apps/mane-academy/src/main/java/com/dineshmane/service/ContactService.java): `19-form-login-configs-for-mvc-and-monolithic-apps/mane-academy/src/main/java/com/dineshmane/service/ContactService.java`
- [Contact model](https://github.com/dinesh-mane/spring-security-projects/blob/main/19-form-login-configs-for-mvc-and-monolithic-apps/mane-academy/src/main/java/com/dineshmane/model/Contact.java): `19-form-login-configs-for-mvc-and-monolithic-apps/mane-academy/src/main/java/com/dineshmane/model/Contact.java`

### Other components

- **User**

## Connections

- User → Angular app module: uses
- Angular app module → Dashboard: declares (evidence: `21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/app.module.ts`)
- Angular app module → Login: declares (evidence: `21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/app.module.ts`)
- Angular app module → Logout: declares (evidence: `21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/app.module.ts`)
- Angular app module → Home: declares (evidence: `21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/app.module.ts`)
- Angular app module → Account: declares (evidence: `21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/app.module.ts`)
- Angular app module → Balance: declares (evidence: `21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/app.module.ts`)
- Angular app module → Cards: declares (evidence: `21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/app.module.ts`)
- Angular app module → Loans: declares (evidence: `21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/app.module.ts`)
- Angular app module → Contact UI: declares (evidence: `21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/app.module.ts`)
- Angular app module → Notices: declares (evidence: `21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/app.module.ts`)
- Angular app module → Auth guard: provides (evidence: `21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/app.module.ts`)
- Angular app module → Request interceptor: registers (evidence: `21-ManeBank-angular-ui-project/ManeBank-frontend/src/app/app.module.ts`)
- Registration endpoint → Password encoder: encodes password (evidence: `09-new-user-registration/src/main/java/com/dineshmane/project/controller/publicEndpoints/UserController.java`)
- Registration endpoint → Customer service: saves user (evidence: `09-new-user-registration/src/main/java/com/dineshmane/project/controller/publicEndpoints/UserController.java`)
- Registration endpoint → Customer record: accepts (evidence: `09-new-user-registration/src/main/java/com/dineshmane/project/controller/publicEndpoints/UserController.java`)
- Contact controller → Contact service: delegates (evidence: `19-form-login-configs-for-mvc-and-monolithic-apps/mane-academy/src/main/java/com/dineshmane/controller/ContactController.java`)
- Contact service → Contact model: logs (evidence: `19-form-login-configs-for-mvc-and-monolithic-apps/mane-academy/src/main/java/com/dineshmane/service/ContactService.java`)
