{"id":26328522,"url":"https://github.com/nadimnesar/spring-security-jwt-auth-module","last_synced_at":"2026-04-11T08:02:30.649Z","repository":{"id":246697763,"uuid":"821871825","full_name":"nadimnesar/spring-security-jwt-auth-module","owner":"nadimnesar","description":"Ready-to-use starter module for authentication and authorization (JWT-based) using Spring Boot and Spring Security.","archived":false,"fork":false,"pushed_at":"2024-07-28T12:02:54.000Z","size":698,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-16T01:38:19.173Z","etag":null,"topics":["gradle","h2-database","java","jwt-authentication","jwt-authorization","restful-api","spring-boot","spring-security"],"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/nadimnesar.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-06-29T17:21:41.000Z","updated_at":"2024-07-28T12:02:57.000Z","dependencies_parsed_at":"2024-06-29T19:36:05.778Z","dependency_job_id":"6ab9ffe3-83ac-4c2b-b750-14cae274abac","html_url":"https://github.com/nadimnesar/spring-security-jwt-auth-module","commit_stats":null,"previous_names":["nadimnesar/spring-security-6-jwt-authentication-module","nadimnesar/spring-security-jwt-authentication-module","nadimnesar/spring-security-jwt-auth0-module"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nadimnesar/spring-security-jwt-auth-module","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nadimnesar%2Fspring-security-jwt-auth-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nadimnesar%2Fspring-security-jwt-auth-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nadimnesar%2Fspring-security-jwt-auth-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nadimnesar%2Fspring-security-jwt-auth-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nadimnesar","download_url":"https://codeload.github.com/nadimnesar/spring-security-jwt-auth-module/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nadimnesar%2Fspring-security-jwt-auth-module/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31673068,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"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":["gradle","h2-database","java","jwt-authentication","jwt-authorization","restful-api","spring-boot","spring-security"],"created_at":"2025-03-15T21:17:22.427Z","updated_at":"2026-04-11T08:02:30.633Z","avatar_url":"https://github.com/nadimnesar.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Security JWT Auth Module\n\n[![Status](https://img.shields.io/badge/status-active-success.svg)]()\n[![GitHub Issues](https://img.shields.io/github/issues/nadimnesar/spring-security-jwt-authentication-module.svg)](https://github.com/nadimnesar/spring-security-jwt-authentication-module/issues)\n[![GitHub Pull Requests](https://img.shields.io/github/issues-pr/nadimnesar/spring-security-jwt-authentication-module.svg)](https://github.com/nadimnesar/spring-security-jwt-authentication-module/pulls)\n[![Commit Activity](https://img.shields.io/github/commit-activity/m/nadimnesar/spring-security-jwt-authentication-module.svg)](https://github.com/nadimnesar/spring-security-jwt-authentication-module/commits)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](/LICENSE)\n---\nThis project is a ready-to-use starter module for authentication and authorization (JSON Web Token-based) using Spring Boot and Spring Security. It avoids deprecated methods, ensuring compatibility and security.\n\n## Prerequisite\n\n- JDK 21\n- Spring Boot \u003e= 3.3.1\n- Spring Security \u003e= 6.3.1\n- H2 Database\n- Gradle (Groovy)\n- Base64 Encoded Secret Key (generate at [Base64Encode.org](https://www.base64encode.org/))\n\n## Features\n\n* Registration\n* Login\n* API method security with roles\n\n## RESTful API Details\n\n### Registration\n\n- `POST /api/auth/register`\n  \u003cimg src=\"/src/main/resources/static/img/postman1.png\" alt=\"postman\"\u003e\n- `POST /api/auth/admin/register`\n  \u003cimg src=\"/src/main/resources/static/img/postman2.png\" alt=\"postman\"\u003e\n\n### Login\n\n- `POST /api/auth/login`\n  \u003cimg src=\"/src/main/resources/static/img/postman3.png\" alt=\"postman\"\u003e\n\n### Refresh Token\n\n- `POST /api/auth/refresh`\n  \u003cimg src=\"/src/main/resources/static/img/postman6.png\" alt=\"postman\"\u003e\n\n### Authorization\n\n- `GET /api/user/`\n  \u003cimg src=\"/src/main/resources/static/img/postman4.png\" alt=\"postman\"\u003e\n- `GET /api/admin/`\n  \u003cimg src=\"/src/main/resources/static/img/postman5.png\" alt=\"postman\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnadimnesar%2Fspring-security-jwt-auth-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnadimnesar%2Fspring-security-jwt-auth-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnadimnesar%2Fspring-security-jwt-auth-module/lists"}