{"id":24692417,"url":"https://github.com/codeflow-inc/authentication","last_synced_at":"2026-05-06T11:36:30.518Z","repository":{"id":274025563,"uuid":"921666030","full_name":"CodeFlow-Inc/Authentication","owner":"CodeFlow-Inc","description":"An API for user authentication and authorization built with ASP.NET Core, Entity Framework Core, and ASP.NET Core Identity. The project provides a foundation for managing user authentication, role-based access control, and JWT token issuance.","archived":false,"fork":false,"pushed_at":"2025-02-03T21:33:15.000Z","size":84,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-22T02:13:28.002Z","etag":null,"topics":["csharp","docker","dotnet","entity-framework","identity"],"latest_commit_sha":null,"homepage":"","language":"C#","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/CodeFlow-Inc.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}},"created_at":"2025-01-24T11:35:44.000Z","updated_at":"2025-02-03T21:43:17.000Z","dependencies_parsed_at":"2025-01-24T12:39:24.074Z","dependency_job_id":null,"html_url":"https://github.com/CodeFlow-Inc/Authentication","commit_stats":null,"previous_names":["codeflow-inc/authentication"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeFlow-Inc%2FAuthentication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeFlow-Inc%2FAuthentication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeFlow-Inc%2FAuthentication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeFlow-Inc%2FAuthentication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeFlow-Inc","download_url":"https://codeload.github.com/CodeFlow-Inc/Authentication/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244894318,"owners_count":20527677,"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":["csharp","docker","dotnet","entity-framework","identity"],"created_at":"2025-01-26T20:15:03.552Z","updated_at":"2026-05-06T11:36:30.472Z","avatar_url":"https://github.com/CodeFlow-Inc.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AuthApi  \n\nAn API for user authentication and authorization built with **ASP.NET Core**, **Entity Framework Core**, and **ASP.NET Core Identity**. The project provides a foundation for managing user authentication, role-based access control, and JWT token issuance.\n\n## Features  \n- User registration and login.  \n- JWT token generation and validation for secure API access.  \n- Role-based access control.  \n- Extendable user and role models for custom attributes.  \n- Clean Architecture design pattern for scalability and maintainability.  \n\n\n## Getting Started  \n\n### Prerequisites  \nBefore starting, ensure you have the following installed:  \n- [.NET 8 SDK](https://dotnet.microsoft.com/download/dotnet/8.0)  \n- [Docker](https://www.docker.com/)\n\n\n## Project Structure  \n\nThe project follows **Clean Architecture** principles with the following layers:  \n\n- **API**: Handles HTTP requests and responses.  \n- **Application**: Contains business logic and service implementations.  \n- **Domain**: Contains core entities and interfaces.  \n- **Infrastructure**: Handles data persistence and third-party integrations.  \n\n\n## API Endpoints  \n\n### Authentication  \n- **POST /api/auth/register**  \n  Register a new user.  \n  **Request body:**  \n  ```json  \n  {  \n    \"email\": \"user@example.com\",  \n    \"password\": \"YourStrongPassword123!\",  \n    \"confirmPassword\": \"YourStrongPassword123!\"  \n  }  \n  ```  \n\n- **POST /api/auth/login**  \n  Authenticate a user and return a JWT token.  \n  **Request body:**  \n  ```json  \n  {  \n    \"email\": \"user@example.com\",  \n    \"password\": \"YourStrongPassword123!\"  \n  }  \n  ```  \n\n### Roles  \n- **GET /api/auth/roles**  \n  Retrieve the roles assigned to the authenticated user.  \n\n\n## Security  \n\n- Passwords are hashed using **ASP.NET Core Identity**'s default algorithms.  \n- JWT tokens are used for stateless authentication and have configurable expiration.  \n- Follow best practices for storing the JWT secret in environment variables or secure stores like Azure Key Vault.  \n\n\n## Contributing  \n\nContributions are welcome! Please fork the repository and submit a pull request with your changes.  \n\n\n## Future Enhancements  \n- Implement password recovery functionality.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeflow-inc%2Fauthentication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeflow-inc%2Fauthentication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeflow-inc%2Fauthentication/lists"}