{"id":20520790,"url":"https://github.com/erebelo/spring-security-jwt","last_synced_at":"2026-04-16T19:37:38.941Z","repository":{"id":229084029,"uuid":"775718829","full_name":"erebelo/spring-security-jwt","owner":"erebelo","description":"Java REST API project using Spring Boot 3, Spring Security 6 for JWT Authentication and Authorization, and H2 database","archived":false,"fork":false,"pushed_at":"2025-02-19T04:38:03.000Z","size":165,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T00:25:17.415Z","etag":null,"topics":["authentication","authorization","back-end","backend","backend-api","backend-service","h2-database","java","jwt","jwt-authentication","spring","spring-boot","spring-boot-3","spring-security","spring-security-6","spring-security-jwt","springboot"],"latest_commit_sha":null,"homepage":"https://jwt.erebelo.com/spring-security-jwt/swagger-ui/index.html","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/erebelo.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":"2024-03-21T23:05:12.000Z","updated_at":"2025-02-19T04:38:06.000Z","dependencies_parsed_at":"2024-03-25T20:30:46.793Z","dependency_job_id":"e750b25d-5ffb-4445-a4b6-89927c4e1125","html_url":"https://github.com/erebelo/spring-security-jwt","commit_stats":null,"previous_names":["erebelo/spring-security-jwt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/erebelo/spring-security-jwt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erebelo%2Fspring-security-jwt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erebelo%2Fspring-security-jwt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erebelo%2Fspring-security-jwt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erebelo%2Fspring-security-jwt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erebelo","download_url":"https://codeload.github.com/erebelo/spring-security-jwt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erebelo%2Fspring-security-jwt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268016848,"owners_count":24181656,"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-07-31T02:00:08.723Z","response_time":66,"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":["authentication","authorization","back-end","backend","backend-api","backend-service","h2-database","java","jwt","jwt-authentication","spring","spring-boot","spring-boot-3","spring-security","spring-security-6","spring-security-jwt","springboot"],"created_at":"2024-11-15T22:22:58.801Z","updated_at":"2025-10-23T20:10:15.729Z","avatar_url":"https://github.com/erebelo.png","language":"Java","readme":"# Spring Security JWT\n\nREST API project developed in Java using Spring Boot 3, Spring Security 6 for JWT Authentication and Authorization, and H2 database.\n\n## Features\n\n- Token-based Authentication using JSON Web Token (JWT)\n- Role-based authorization\n- Encoding password with BCrypt algorithm\n\n## Requirements\n\n- Java 17\n- Spring Boot 3.x.x\n- Spring Security 6.x.x\n- Apache Maven 3.8.6\n\n## Libraries\n\n- [spring-common-parent](https://github.com/erebelo/spring-common-parent): Manages the Spring Boot version and provide common configurations for plugins and formatting.\n\n## Configuring Maven for GitHub Dependencies\n\nTo pull the `spring-common-parent` dependency, follow these steps:\n\n1. **Generate a Personal Access Token**:\n\n   Go to your GitHub account -\u003e **Settings** -\u003e **Developer settings** -\u003e **Personal access tokens** -\u003e **Tokens (classic)** -\u003e **Generate new token (classic)**:\n\n    - Fill out the **Note** field: `Pull packages`.\n    - Set the scope:\n        - `read:packages` (to download packages)\n    - Click **Generate token**.\n\n2. **Set Up Maven Authentication**:\n\n   In your local Maven `settings.xml`, define the GitHub repository authentication using the following structure:\n\n   ```xml\n   \u003cservers\u003e\n     \u003cserver\u003e\n       \u003cid\u003egithub-spring-common-parent\u003c/id\u003e\n       \u003cusername\u003eUSERNAME\u003c/username\u003e\n       \u003cpassword\u003eTOKEN\u003c/password\u003e\n     \u003c/server\u003e\n   \u003c/servers\u003e\n   ```\n\n   **NOTE**: Replace `USERNAME` with your GitHub username and `TOKEN` with the personal access token you just generated.\n\n## Run App\n\n- Set the following environment variables: `DB_PASSWORD`, `ADMIN_PASSWORD` and `SECRET_KEY` (size \u003e= 256 bits).\n- Run the `SpringSecurityJwtApplication` class as Java Application.\n\n## Collection\n\n[Project Collection](https://github.com/erebelo/spring-security-jwt/tree/main/collection)\n\n## AWS Demo\n\n[Spring Security JWT](https://jwt.erebelo.com/spring-security-jwt/swagger-ui/index.html)\n\n## AWS Deployment\n\nFollow the [AWS Docker](https://github.com/erebelo/aws-docker/tree/main) guide to deploy a **Java App** instance and how to set up **Nginx** as a reverse proxy with a valid Wildcard SSL/TLS certificate.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferebelo%2Fspring-security-jwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferebelo%2Fspring-security-jwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferebelo%2Fspring-security-jwt/lists"}