{"id":16467232,"url":"https://github.com/chijioke-ibekwe/spring-security-jwt","last_synced_at":"2025-07-03T00:05:13.116Z","repository":{"id":196433300,"uuid":"690307302","full_name":"chijioke-ibekwe/spring-security-jwt","owner":"chijioke-ibekwe","description":"Spring Boot project starter fully configured with JWT authentication and authorization, using Spring Boot 3 and Spring Security 6","archived":false,"fork":false,"pushed_at":"2024-07-05T09:39:05.000Z","size":296,"stargazers_count":11,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-08T09:12:55.957Z","etag":null,"topics":["jwt","jwt-authentication","jwt-token","project-starter","spring-boot","spring-boot-3","spring-security","spring-security-6","spring-security-jwt"],"latest_commit_sha":null,"homepage":"","language":"Java","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/chijioke-ibekwe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2023-09-12T00:22:37.000Z","updated_at":"2024-08-12T21:19:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"f13c17e8-fdbc-439d-8444-8b88e707ea7b","html_url":"https://github.com/chijioke-ibekwe/spring-security-jwt","commit_stats":null,"previous_names":["chijioke-ibekwe/spring-security-jwt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chijioke-ibekwe/spring-security-jwt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chijioke-ibekwe%2Fspring-security-jwt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chijioke-ibekwe%2Fspring-security-jwt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chijioke-ibekwe%2Fspring-security-jwt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chijioke-ibekwe%2Fspring-security-jwt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chijioke-ibekwe","download_url":"https://codeload.github.com/chijioke-ibekwe/spring-security-jwt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chijioke-ibekwe%2Fspring-security-jwt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263234943,"owners_count":23434918,"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":["jwt","jwt-authentication","jwt-token","project-starter","spring-boot","spring-boot-3","spring-security","spring-security-6","spring-security-jwt"],"created_at":"2024-10-11T11:46:39.840Z","updated_at":"2025-07-03T00:05:13.002Z","avatar_url":"https://github.com/chijioke-ibekwe.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003ch2 align=\"center\"\u003eSpring Security JWT Project Starter\u003c/h3\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![Status](https://img.shields.io/badge/status-active-success.svg)]()\n[![GitHub Issues](https://img.shields.io/github/issues/chijioke-ibekwe/The-Documentation-Compendium.svg)](https://github.com/chijioke-ibekwe/spring-security-jwt/issues)\n[![GitHub Pull Requests](https://img.shields.io/github/issues-pr/chijioke-ibekwe/The-Documentation-Compendium.svg)](https://github.com/chijioke-ibekwe/spring-security-jwt/pulls)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](/LICENSE)\n\n\u003c/div\u003e\n\n---\n\n\u003cp align=\"center\"\u003e Spring Boot project starter code fully configured with JWT authentication and authorization, using Spring Boot 3 and Spring Security 6.\n    \u003cbr\u003e \n\u003c/p\u003e\n\n## 📝 Table of Contents\n- [About](#about)\n- [Getting Started](#getting_started)\n- [Usage](#usage)\n- [API Documentation](#api_docs)\n- [Built Using](#built_using)\n- [Authors](#authors)\n\n## 🧐 About \u003ca name = \"about\"\u003e\u003c/a\u003e\nThis is a fully configured Spring Security JWT module using the new Spring Boot 3 and Spring Security 6 \nframeworks. It provides spring security JWT configurations you need to quickly bootstrap your small to medium scale \nprojects. This project is configured to issue self-signed JWTs which eliminate the need to introduce a standalone \nauthorization server. The following features are supported:\n- User registration\n- User login using their username and password\n- API method security with user roles and permissions\n\n**If you find this project useful, kindly drop a star on this repo. I'd really appreciate it 🙂.**\n\n## 🏁 Getting Started \u003ca name = \"getting_started\"\u003e\u003c/a\u003e\n### Prerequisites  \nTo successfully use this project, you'll need the following installed on your machine:\n- **JDK \u003e= v17.** That is because this project was developed using Spring Boot 3, which requires Java 17\nas a minimum version.\n- **Apache Maven**\n- **Docker**\n- **OpenSSL**\n\n## 🎈 Usage \u003ca name=\"usage\"\u003e\u003c/a\u003e\nTo use this project:\n1. Fork the repository\n\n2. Clone the repository using the following command:\n   ```\n   git clone https://github.com/\u003cyour-git-username\u003e/spring-security-jwt.git\n   ```\n3. A docker compose file is attached to this project to help you easily set up a development database. To do this,\n   run the following command in your terminal from the root directory of the project\n   ```\n   docker compose up -d\n   ```\n   This command will spin-up the following containers running in a detached mode: \n   - A postgres database running on `localhost:5431`, and \n   - A pgAdmin UI running on `localhost:5050` for managing the database.\n\n4. Using the `pgAdmin` interface or your `psql`, create a database called `spring-security-jwt`. If you wish to name \n   this database something different, make sure to update the database configuration in the `application.yml` file.\n\n5. Generate the asymmetric keys for encrypting and decrypting the JWT, by running the `generate_keys.sh` script\n   from the root directory of the project using:\n   ```\n   ./generate_keys.sh\n   ```\n   Ensure that the generated keys directory is git ignored to prevent committing them to source control\n6. Lastly, run the following command to start the application, or simply run the `JwtSecurityApplication.java` class \n   via your IDE:\n   ```\n   mvn clean compile exec:java\n   ```\n   Liquibase will run the migration files within the `resources/db` directory, upon startup, to set up the database.\n   The schema created will have the following structure.  \n   \u003cimg height=\"400\" src=\"./src/main/resources/db/erd.png\" width=\"600\"/\u003e\n\n   Feel free to begin customizations!\n\n## 📄 API Documentation \u003ca name=\"api_docs\"\u003e\u003c/a\u003e\nThis project is configured with swagger for API documentation. When the application is started, visit the following link\non your browser to view the documentation for the existing APIs:\n```\nhttp://localhost:8081/swagger-ui/index.html\n```\n\n## ⛏️ Built Using \u003ca name = \"built_using\"\u003e\u003c/a\u003e\n- [Spring Boot v3.2.5](https://spring.io/projects/spring-boot) - Spring Boot 3\n- [PostgreSQL](https://www.postgresql.org/) - PostgreSQL Database\n\n## ✍️ Authors \u003ca name = \"authors\"\u003e\u003c/a\u003e\n- [@chijioke-ibekwe](https://github.com/chijioke-ibekwe) - Idea \u0026 Initial work","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchijioke-ibekwe%2Fspring-security-jwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchijioke-ibekwe%2Fspring-security-jwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchijioke-ibekwe%2Fspring-security-jwt/lists"}