{"id":29189904,"url":"https://github.com/sakhileln/authentication","last_synced_at":"2026-04-19T14:32:33.292Z","repository":{"id":302041135,"uuid":"1010812953","full_name":"sakhileln/authentication","owner":"sakhileln","description":"A comprehensive authentication system.","archived":false,"fork":false,"pushed_at":"2025-06-30T08:18:44.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-30T09:22:12.688Z","etag":null,"topics":["authentication","database","java","jwt","jwt-token","oauth2","spring-boot","sso"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sakhileln.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"docs/security/features.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-29T21:10:58.000Z","updated_at":"2025-06-30T08:18:47.000Z","dependencies_parsed_at":"2025-06-30T09:22:18.204Z","dependency_job_id":"ca898240-c9dc-462d-b18c-ce3dda3eee78","html_url":"https://github.com/sakhileln/authentication","commit_stats":null,"previous_names":["sakhileln/authentication"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/sakhileln/authentication","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sakhileln%2Fauthentication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sakhileln%2Fauthentication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sakhileln%2Fauthentication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sakhileln%2Fauthentication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sakhileln","download_url":"https://codeload.github.com/sakhileln/authentication/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sakhileln%2Fauthentication/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263047686,"owners_count":23405280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["authentication","database","java","jwt","jwt-token","oauth2","spring-boot","sso"],"created_at":"2025-07-01T23:18:19.830Z","updated_at":"2026-04-19T14:32:33.285Z","avatar_url":"https://github.com/sakhileln.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Authentication Service\nA comprehensive Spring Boot authentication service with JWT tokens, MFA support, email verification, and OAuth2 integration.\n\n## Quick Start\n### Prerequisites\n- Java 17+\n- Maven 3.6+\n\n### Installation\n1. **Clone and setup**\n   ```bash\n   git clone https://github.com/sakhileln/authentication.git\n   cd authentication\n   ```\n\n2. **Configure environment**\n   ```bash\n   export JWT_SECRET=\"your-super-secret-jwt-key-that-should-be-at-least-256-bits-long\"\n   export MAIL_USERNAME=\"your-email@gmail.com\"\n   export MAIL_PASSWORD=\"your-app-password\"\n   ```\n\n3. **Run the application**\n   ```bash\n   # Generate a test token\n   make token\n   \n   # Export the token and test user endpoints\n   export TOKEN=\u003ctoken_from_above\u003e\n   make users\n\n   # Setup and run\n   make setup\n   make dev-up\n   \n   # Clean up\n   make dev-down\n   make clean\n   ```\n\n4. **Access the API**\n   - Base URL: `http://localhost:8080`\n   - Database: `authdb.sqlite` (created automatically)\n\n## Documentation\n- **[API Reference](docs/api/endpoints.md)** - Complete API documentation\n- **[Architecture](docs/architecture/system-design.md)** - System design and components\n- **[Security](docs/security/features.md)** - Security features and best practices\n- **[Database](docs/database/schema.md)** - Database schema and management\n- **[Deployment](docs/deployment/deploy.md)** - Production deployment guide\n\n## Features\n- JWT Authentication with refresh tokens\n- Email verification system\n- Password reset and management\n- Multi-Factor Authentication (TOTP)\n- OAuth2 integration (Google, GitHub)\n- SQLite3 database\n- Token revocation and management\n\n## Tech Stack\n- **Java 17** + **Spring Boot 3.2.0**\n- **Spring Security** + **JWT**\n- **Spring Data JPA** + **SQLite3**\n- **TOTP** for MFA\n- **Spring Mail** for email notifications\n\n## Usage Examples\n### Register a new user\n```bash\ncurl -X POST http://localhost:8080/auth/signup \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"username\": \"sakhile\",\n    \"email\": \"sakhile@mars.com\",\n    \"password\": \"SecurePass123!\",\n    \"confirmPassword\": \"SecurePass123!\",\n    \"firstName\": \"Sakhile\",\n    \"lastName\": \"Ndlazi\"\n  }'\n```\n\n### Login\n```bash\ncurl -X POST http://localhost:8080/auth/login \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"email\": \"sakhile@mars.com\",\n    \"password\": \"SecurePass123!\"\n  }'\n```\n\nSee [API Reference](docs/api/endpoints.md) for complete examples.\n\n## Security\n- BCrypt password hashing\n- JWT with HMAC-SHA256 signing\n- Configurable token expiration\n- MFA with TOTP and backup codes\n- Email verification required\n- CORS configuration\n\n## License\nThis project is licensed under [license](LISENSE.md).\n\n## Contributing\n1. Fork the repository\n2. Create a feature branch\n3. Make your changes\n4. Add tests\n5. Submit a pull request\n\n## Support\n- Check the [documentation](docs/)\n- Create an issue for bugs\n- Suggest features via issues\n\n## Contact\n- Sakhile III  \n- [LinkedIn Profile](https://www.linkedin.com/in/sakhile-)\n- [GitHub Profile](https://github.com/sakhileln)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsakhileln%2Fauthentication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsakhileln%2Fauthentication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsakhileln%2Fauthentication/lists"}