{"id":30454771,"url":"https://github.com/fernandesreon/authentication-module","last_synced_at":"2026-04-08T20:03:10.859Z","repository":{"id":309887661,"uuid":"1034182519","full_name":"FernandesReon/Authentication-Module","owner":"FernandesReon","description":"Reusable, highly customizable authentication module for Spring Boot based projects ","archived":false,"fork":false,"pushed_at":"2025-08-16T03:18:03.000Z","size":101,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-23T19:27:43.548Z","etag":null,"topics":["docker","jwt","mysql","react","redis","spring-boot","spring-security"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FernandesReon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-08T01:43:40.000Z","updated_at":"2025-08-16T03:18:06.000Z","dependencies_parsed_at":"2025-08-14T11:35:14.248Z","dependency_job_id":"249734ad-ce4a-4fd5-b22e-65cfb6e1b39c","html_url":"https://github.com/FernandesReon/Authentication-Module","commit_stats":null,"previous_names":["fernandesreon/authentication-module"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FernandesReon/Authentication-Module","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FernandesReon%2FAuthentication-Module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FernandesReon%2FAuthentication-Module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FernandesReon%2FAuthentication-Module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FernandesReon%2FAuthentication-Module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FernandesReon","download_url":"https://codeload.github.com/FernandesReon/Authentication-Module/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FernandesReon%2FAuthentication-Module/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31571601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","jwt","mysql","react","redis","spring-boot","spring-security"],"created_at":"2025-08-23T16:01:56.017Z","updated_at":"2026-04-08T20:03:10.845Z","avatar_url":"https://github.com/FernandesReon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Secure Authentication Module\n\nProduction-grade authentication system built with Spring Boot + React, designed with progressive security hardening and \nextensibility in mind.\n\nThis project focuses on implementing authentication the correct way — following modern security principles such as:\n\n- httpOnly cookie-based authentication\n- Short-lived JWT access tokens\n- Refresh token rotation\n- OTP \u0026 OAuth support\n- Stateless security architecture\n\nCurrently, in Phase 3 - OAuth \u0026 Extensibility.\n\n## About the project\nSecure Authentication Module is a reusable, enterprise-ready authentication service built to simulate real-world production security architecture.\nThe goal is to:\n- Understand authentication flows deeply \n- Implement security best practices \n- Build a modular system extensible for OAuth, OTP, and future passkey support\n- Keep frontend and backend cleanly separated\n\nThis project evolves in structured phases, gradually increasing security, reliability, and extensibility.\n\n\n## Tech Stack\n#### Backend\n\n- Java 21\n- Spring Boot 4.x\n- Spring Security\n- JWT (Access + Refresh token)\n- MySQL 8.x\n- Redis 7.x\n- Spring Data JPA\n- Hibernate\n- Lombok\n- Resilience4j (Phase 4)\n- OpenAPI / Swagger (Phase 4)\n\n#### Frontend\n- React 18\n- TypeScript\n- Vite\n- Axios\n- React Router v6\n- Shadcn UI\n- Tailwind CSS\n- React Hook Form - later\n- Zod - later\n\n\n## Project Flow\nBelow is the simplified authentication flow\n1. User Registration\n   - User submits [name, email, password]\n   - Password is hashed using BCrypt\n   - User saved in database (MYSQL)\n   - Verification email send (6-digits alphanumeric code)\n   - User verified if correct OTT.\n2. User Authentication [login] - (password / passwordless)\n   - User submits credentials\n   - Spring Security authenticates\n     - if passwordless, OTP is sent for verification\n     - once verified\n   - Access token (short-lived) generated\n   - Refresh token generated and stored in Redis\n   - Tokens send via httpOnly secure cookies\n3. Token refresh flow\n   - Access token expires\n   - Frontend automatically calls refresh endpoint\n   - Refresh token validated against redis\n   - New access token issued\n   - Refresh token rotation applied\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffernandesreon%2Fauthentication-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffernandesreon%2Fauthentication-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffernandesreon%2Fauthentication-module/lists"}