This project is a robust user authentication service developed using Golang and PostgreSQL. It provides comprehensive functionalities for user authentication process, including create, delete, update and authentication of users. The system also incorporates features such as email verification and password reset capabilities.
- User
- User CRUD Operations: Implemented CRUD for user account.
- Authentication Mechanism: Used stateful authentication because have much more control over revoking the session token as compared to stateless authentication (i.e. JWT Token).
- Verification Mechanism: Integrated email verification process to enhance user security and authenticity.
- Testing: Used testcontainers-go to perform integration testing.
- Clone the repository:
git clone github.com/sushihentaime/user-authentication-service
- Make sure docker is installed on the machine. Otherwise, find Docker for more information.
- Create an env file in the same format as the env sample file.
- Run
docker-compose up
to build the image and containers
- How to create production level logging?
- How to perform end to end testing and what additional testing should I perform?
- Golang logging lacks context how can I make it to have more context during the development process?
- How to avoid brute force attacks to the server?
- Should I run tests after the container has been build to make sure that things work as intended?
- Am I doing integration testing correctly?
- Should I create a dub for testing the mail server as I am using mailtrap for email testing?
Contributions are welcome! Feel free to submit pull request, open issues, or suggest improvements to enhance the functionality and usability of the service.
The project is under MIT license.