# wattrelos/fatec-fv_teste_software-stand-alone architecture

> Architecture diagram of the GitHub repository wattrelos/fatec-fv_teste_software-stand-alone, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/wattrelos/fatec-fv_teste_software-stand-alone
- Repository: https://github.com/wattrelos/fatec-fv_teste_software-stand-alone

## Overview

This is an in-memory Python authentication demo and software-testing project. The main user workflow is browser login: the HTTP server serves the login page, routes credentials to the authentication service, and returns a result with session-cookie handling; protected routes and logout use that session. The service also covers password hashing, inactive accounts, rate limiting, and redirect safety. BDD browser scenarios are a documented project capability. The supplied excerpts do not show the login page’s client-side requests, so that wiring is not drawn.

Main entry points: [`features/steps/login_steps.py`](https://github.com/wattrelos/fatec-fv_teste_software-stand-alone/blob/main/features/steps/login_steps.py) (Browser step definitions), [`app/server.py`](https://github.com/wattrelos/fatec-fv_teste_software-stand-alone/blob/main/app/server.py) (HTTP server), [`app/auth_service.py`](https://github.com/wattrelos/fatec-fv_teste_software-stand-alone/blob/main/app/auth_service.py) (Authentication service), [`features/auth/login.feature`](https://github.com/wattrelos/fatec-fv_teste_software-stand-alone/blob/main/features/auth/login.feature) (Login scenarios)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_presentation["Web interface"]
  node_login_page["Login page<br/>[login.html]"]
end

subgraph group_http["HTTP application"]
  node_http_server["HTTP server<br/>[server.py]"]
end

subgraph group_domain["Authentication domain"]
  node_auth_service["Authentication service<br/>[auth_service.py]"]
  node_account_state[("Accounts and sessions<br/>[auth_service.py]")]
  node_security_rules["Login security rules<br/>[auth_service.py]"]
end

subgraph group_bdd["BDD validation"]
  node_bdd_feature["Login scenarios<br/>[login.feature]"]
  node_bdd_steps["Browser step definitions<br/>[login_steps.py]"]
end

node_browser_user(("Browser user"))
node_chromium(("Chromium browser"))

node_browser_user -->|"requests pages"| node_http_server
node_http_server -->|"serves page"| node_login_page
node_http_server -->|"routes authentication"| node_auth_service
node_auth_service -->|"reads and updates"| node_account_state
node_auth_service -->|"applies checks"| node_security_rules
node_bdd_steps -->|"starts server"| node_http_server
node_bdd_steps -->|"prepares and checks"| node_auth_service
node_bdd_steps -->|"drives browser"| node_chromium
node_bdd_feature -.->|"specifies scenarios"| node_bdd_steps

click node_login_page "https://github.com/wattrelos/fatec-fv_teste_software-stand-alone/blob/main/public/login.html"
click node_http_server "https://github.com/wattrelos/fatec-fv_teste_software-stand-alone/blob/main/app/server.py"
click node_auth_service "https://github.com/wattrelos/fatec-fv_teste_software-stand-alone/blob/main/app/auth_service.py"
click node_account_state "https://github.com/wattrelos/fatec-fv_teste_software-stand-alone/blob/main/app/auth_service.py"
click node_security_rules "https://github.com/wattrelos/fatec-fv_teste_software-stand-alone/blob/main/app/auth_service.py"
click node_bdd_feature "https://github.com/wattrelos/fatec-fv_teste_software-stand-alone/blob/main/features/auth/login.feature"
click node_bdd_steps "https://github.com/wattrelos/fatec-fv_teste_software-stand-alone/blob/main/features/steps/login_steps.py"

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_login_page,node_browser_user,node_chromium toneBlue
class node_http_server toneAmber
class node_auth_service,node_account_state,node_security_rules toneMint
class node_bdd_feature,node_bdd_steps toneRose
```

## Components

### Web interface

- [Login page](https://github.com/wattrelos/fatec-fv_teste_software-stand-alone/blob/main/public/login.html): `public/login.html`

### HTTP application

- [HTTP server](https://github.com/wattrelos/fatec-fv_teste_software-stand-alone/blob/main/app/server.py): `app/server.py`

### Authentication domain

- [Authentication service](https://github.com/wattrelos/fatec-fv_teste_software-stand-alone/blob/main/app/auth_service.py): `app/auth_service.py`
- [Accounts and sessions](https://github.com/wattrelos/fatec-fv_teste_software-stand-alone/blob/main/app/auth_service.py): `app/auth_service.py`
- [Login security rules](https://github.com/wattrelos/fatec-fv_teste_software-stand-alone/blob/main/app/auth_service.py): `app/auth_service.py`

### BDD validation

- [Login scenarios](https://github.com/wattrelos/fatec-fv_teste_software-stand-alone/blob/main/features/auth/login.feature): `features/auth/login.feature`
- [Browser step definitions](https://github.com/wattrelos/fatec-fv_teste_software-stand-alone/blob/main/features/steps/login_steps.py): `features/steps/login_steps.py`

### Other components

- **Browser user**
- **Chromium browser**

## Connections

- Browser user → HTTP server: requests pages (evidence: `README.md`)
- HTTP server → Login page: serves page (evidence: `app/server.py`)
- HTTP server → Authentication service: routes authentication (evidence: `app/server.py`)
- Authentication service → Accounts and sessions: reads and updates (evidence: `app/auth_service.py`)
- Authentication service → Login security rules: applies checks (evidence: `app/auth_service.py`)
- Browser step definitions → HTTP server: starts server (evidence: `features/steps/login_steps.py`)
- Browser step definitions → Authentication service: prepares and checks (evidence: `features/steps/login_steps.py`)
- Browser step definitions → Chromium browser: drives browser (evidence: `features/steps/login_steps.py`)
- Login scenarios → Browser step definitions: specifies scenarios (evidence: `README.md`)
