{"id":21326368,"url":"https://github.com/maximemoreillon/user-manager-mongodb","last_synced_at":"2026-05-06T22:37:12.266Z","repository":{"id":87273791,"uuid":"354674907","full_name":"maximemoreillon/user-manager-mongodb","owner":"maximemoreillon","description":"A service to manage users and their authentication","archived":false,"fork":false,"pushed_at":"2024-06-29T23:16:48.000Z","size":1642,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-30T13:29:30.035Z","etag":null,"topics":["authentication","mongodb","nodejs","user","user-management"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maximemoreillon.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":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-05T00:22:56.000Z","updated_at":"2024-06-29T23:16:51.000Z","dependencies_parsed_at":"2023-11-18T00:06:14.344Z","dependency_job_id":"4eff68ff-03fc-46bf-a4d7-04a64bf2c34a","html_url":"https://github.com/maximemoreillon/user-manager-mongodb","commit_stats":null,"previous_names":["maximemoreillon/user-manager-mongodb"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/maximemoreillon/user-manager-mongodb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximemoreillon%2Fuser-manager-mongodb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximemoreillon%2Fuser-manager-mongodb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximemoreillon%2Fuser-manager-mongodb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximemoreillon%2Fuser-manager-mongodb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maximemoreillon","download_url":"https://codeload.github.com/maximemoreillon/user-manager-mongodb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximemoreillon%2Fuser-manager-mongodb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32715424,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T19:35:05.142Z","status":"ssl_error","status_checked_at":"2026-05-06T19:35:03.996Z","response_time":117,"last_error":"SSL_read: 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":["authentication","mongodb","nodejs","user","user-management"],"created_at":"2024-11-21T21:09:29.814Z","updated_at":"2026-05-06T22:37:12.246Z","avatar_url":"https://github.com/maximemoreillon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# User manager (MongoDB version)\n\n[![pipeline status](https://gitlab.com/moreillon_ci/user_manager_mongoose/badges/master/pipeline.svg)](https://gitlab.com/moreillon_ci/user_manager_mongoose/-/commits/master)\n[![coverage report](https://gitlab.com/moreillon_ci/user_manager_mongoose/badges/master/coverage.svg)](https://gitlab.com/moreillon_ci/user_manager_mongoose/-/commits/master)\n![Docker Pulls](https://img.shields.io/docker/pulls/moreillon/user-manager-mongoose)\n[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/moreillon)](https://artifacthub.io/packages/search?repo=moreillon)\n\nA user management and authentication microservice.\n\nUser data is stored in a MongoDB database and accessed using Mongoose.\nInteraction with user records is achieved via a REST API, built using Express.\n\nFor more information, see this [Medium article](https://moreillon.medium.com/a-pluggable-user-management-and-authentication-service-for-web-applications-a6f23ae5816b)\n\n## API\n\n| Route                     | Method | query/body                                           | Description                                                                                 |\n| ------------------------- | ------ | ---------------------------------------------------- | ------------------------------------------------------------------------------------------- |\n| /                         | GET    | -                                                    | Show application configuration                                                              |\n| /users                    | GET    | limit                                                | Get the list of users                                                                       |\n| /users                    | POST   | user properties                                      | Creates a user. Mandatory properties are username (or email_address) and password           |\n| /users/{user_id}          | GET    | -                                                    | Get the user with the given user ID. Use 'self' for user currently logged in                |\n| /users/{user_id}          | DELETE | -                                                    | Delete user with the given user ID. Use 'self' for user currently logged in                 |\n| /users/{user_id}          | PATCH  | new user properties                                  | Update user with the given user ID. Use 'self' for user currently logged in                 |\n| /users/{user_id}/password | PUT    | current password, new_password, new_password_confirm | Update the password of user with the given user ID. Use 'self' for user currently logged in |\n| /auth/login               | POST   | username, password                                   | Login, returns a jwt                                                                        |\n\n## Environment variables\n\n| Variable                  | Description                                                             |\n| ------------------------- | ----------------------------------------------------------------------- |\n| MONGODB_CONNECTION_STRING | The connection string for the MongoDB database                          |\n| JWT_SECRET                | Secret used to sign Tokens                                              |\n| ADMIN_USERNAME            | The default username for the administrator account, defaults to 'admin' |\n| ADMIN_PASSWORD            | The default password for the administrator account, defaults to 'admin' |\n| ALLOW_REGISTRATION        | Allows unregistered users to create an account                          |\n| SMTP_HOST                 | Host of the SMTP server (only used for registration)                    |\n| SMTP_PORT                 | PORT of the SMTP server (only used for registration)                    |\n| SMTP_USERNAME             | Username for the SMTP server (only used for registration)               |\n| SMTP_PASSWORD             | Password for the SMTP server (only used for registration)               |\n| SMTP_FROM                 | E-mail from (only used for registration)                                |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximemoreillon%2Fuser-manager-mongodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaximemoreillon%2Fuser-manager-mongodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximemoreillon%2Fuser-manager-mongodb/lists"}