Skip to main content
Welcome to the documentation of the fourth microservice of the project. My Portfolio’s Identity and Access Management System! This project acts as the centralized backend to manage identities and permissions. It is designed under a strict REST architecture to demonstrate capabilities in API security, role-based access control (RBAC), and relational database design in modern environments.

🚀 Features and Backend Architecture

JWT Security

Implementation of stateless authentication to secure transactions between the client and the server using JSON Web Tokens.

Access Control (RBAC)

Custom middlewares that intercept and validate granular privileges (admin, auditor, operator) before executing controllers.

Immutable Log

Transactional event log with JSON fields (payload) for historical metadata and IP address anonymization using Traits.

Data Protection

Implementation of “Soft Deletes” for logical user deletions, maintaining referential integrity without losing history.

RESTful Standardization

Standardized communication contracts under strict versioning (/api/v1/), guaranteeing the secure evolution of interfaces.

Automated Testing

Business logic and endpoint coverage using Pest, guaranteeing predictable and regression-proof flows.

🛠️ Tech Stack

💻 Development Commands

Instructions to set up the environment locally (it is assumed that PostgreSQL is running on port 5434).

📡 API Documentation

All requests to protected routes require the header: Authorization: Bearer <token>.

🔐 Authentication (/api/v1/auth)

👥 Access Management

📜 Log and Traffic