Code Monkey home page Code Monkey logo

user-authentication-service's Introduction

User Authentication Service

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.

Parties

  1. User

Features

  • 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.

How to use

  1. Clone the repository: git clone github.com/sushihentaime/user-authentication-service
  2. Make sure docker is installed on the machine. Otherwise, find Docker for more information.
  3. Create an env file in the same format as the env sample file.
  4. Run docker-compose up to build the image and containers

Unresolved Problems

  1. How to create production level logging?
  2. How to perform end to end testing and what additional testing should I perform?
  3. Golang logging lacks context how can I make it to have more context during the development process?
  4. How to avoid brute force attacks to the server?
  5. Should I run tests after the container has been build to make sure that things work as intended?
  6. Am I doing integration testing correctly?
  7. Should I create a dub for testing the mail server as I am using mailtrap for email testing?

Contributions

Contributions are welcome! Feel free to submit pull request, open issues, or suggest improvements to enhance the functionality and usability of the service.

License

The project is under MIT license.

user-authentication-service's People

Contributors

sushihentaime avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.