๐Ÿ” Auth Microservice

Muhammad Ahmed
Published

0
  • Project creator

A standalone authentication and authorisation microservice built with Laravel. Designed to be consumed by other services via REST API. Covers the full auth surface: JWT tokens, Two-Factor Authentication (TOTP), Role-Based Access Control (RBAC), Redis-cached permissions, session management, and a full audit trail.

โœจ Features
Token-based auth via Laravel Sanctum with expiry and multi-device session management
Two-Factor Authentication (2FA) โ€” TOTP-based (Google Authenticator, Authy compatible)
Role-Based Access Control (RBAC) โ€” flexible roles + permissions with many-to-many assignment
Redis-cached permissions โ€” permissions cached per user, invalidated on role change or logout
Rate limiting โ€” brute-force protection on login (5 attempts per minute per IP)
Audit logging โ€” every auth event recorded (login, logout, 2FA, role changes)
Session management โ€” list active sessions, revoke individual or all devices
PHPUnit feature tests covering all core flows

https://www.twine.net/signin