{"id":28295785,"url":"https://github.com/tericcabrel/spring-user-management","last_synced_at":"2025-10-13T18:43:49.005Z","repository":{"id":39928323,"uuid":"238617835","full_name":"tericcabrel/spring-user-management","owner":"tericcabrel","description":"A REST API for User and Role management, token generation and validation","archived":false,"fork":false,"pushed_at":"2024-08-26T16:41:03.000Z","size":354,"stargazers_count":104,"open_issues_count":3,"forks_count":46,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-22T16:21:54.606Z","etag":null,"topics":["java","rest-api","spring","spring-boot","spring-mongodb","user-management"],"latest_commit_sha":null,"homepage":"","language":"Java","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/tericcabrel.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}},"created_at":"2020-02-06T05:50:50.000Z","updated_at":"2025-04-26T17:05:33.000Z","dependencies_parsed_at":"2022-08-24T18:51:44.078Z","dependency_job_id":null,"html_url":"https://github.com/tericcabrel/spring-user-management","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tericcabrel/spring-user-management","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tericcabrel%2Fspring-user-management","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tericcabrel%2Fspring-user-management/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tericcabrel%2Fspring-user-management/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tericcabrel%2Fspring-user-management/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tericcabrel","download_url":"https://codeload.github.com/tericcabrel/spring-user-management/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tericcabrel%2Fspring-user-management/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016600,"owners_count":26085852,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["java","rest-api","spring","spring-boot","spring-mongodb","user-management"],"created_at":"2025-05-22T16:19:04.775Z","updated_at":"2025-10-13T18:43:49.000Z","avatar_url":"https://github.com/tericcabrel.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Identity Authorization Service\nA REST API for User and Role management, token generation and validation\n\n## Contents\n- [Features](#features)\n- [Prerequisites](#prerequisites)\n- [Installation](#installation)\n- [Data Seed](#data-seed)\n- [Deployment](#deployment)\n- [Tests](#tests)\n\n\n## Features\nThis features are available in this service\n\n- **User Registration:** Register user and send email for confirmation\n- **Password reset: Send email with a reset link**\n- **Authentication with JWT:** Generate JWT Access token and a random string for Refresh token the login\n- **Logger:** Log info/error message into a log file\n- **Role based authorization:** Allow or denied access to a resource according to user's role\n- **Swagger:** API Documented with Swagger 2\n- **HTML Email:** Use Thymeleaf to build HTML templates for email\n\n## Prerequisites\n- JDK 8\n- Maven\n- MongoDB\n- Redis\n\n## Installation\n- Clone the repository\n```bash\n$ git clone https://github.com/tericcabrel/identity-authorization.git [project_name]\n```\n\n- Install dependencies\n```bash\n$ cd [project_name]\n$ mvn install\n```\n- Create the configuration file and update with your local config\n```bash\n$ cd src/main/resources\n$ cp application-example.properties application.properties\n$ nano application.properties\n```\n- Start Application\n```bash\n$ mvn spring-boot:run\n```\nNote: An IDE like **IntelliJ** can perform these tasks for you automatically\n\n## Data Seed\nInside the package **com.tericcabrel.authorization.bootstrap**, the file named _DataSeeder.java_ \nis responsible for loading data on application startup.\nIt's there the creation of default roles **(ROLE_ADMIN, ROLE_USER)**, \nand the Super Admin (the first user with the role: ROLE_ADMIN) are performed\n\n## Deployment\nAt the root of the folder, there is a file named **deploy.sh** who is bash file who content\nwho contains scripts to deploy our app. The main steps are:\n\n- Backup the local configuration file and create one for production \n- Build **.jar** the package\n- Delete configuration for production and restore local configuration\n- Build docker image with his dependencies **(see docker-compose.yml)** and run the container\n\n## Tests\n**Unit tests and Integration tests will come soon**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftericcabrel%2Fspring-user-management","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftericcabrel%2Fspring-user-management","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftericcabrel%2Fspring-user-management/lists"}