{"id":21076363,"url":"https://github.com/rapter1990/spring-boot-jwt-authentication","last_synced_at":"2025-04-12T22:01:33.656Z","repository":{"id":124091128,"uuid":"290013166","full_name":"Rapter1990/Spring-Boot-JWT-Authentication","owner":"Rapter1990","description":"Spring Boot JWT Authentication","archived":false,"fork":false,"pushed_at":"2020-08-24T19:19:09.000Z","size":421,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T16:05:27.681Z","etag":null,"topics":["authentication","java","jwt","jwt-authentication","spring-boot","spring-boot-application","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rapter1990.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-24T18:53:49.000Z","updated_at":"2024-07-18T07:33:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"d916e168-56ca-4b0f-b208-8ccf2eb55a4f","html_url":"https://github.com/Rapter1990/Spring-Boot-JWT-Authentication","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rapter1990%2FSpring-Boot-JWT-Authentication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rapter1990%2FSpring-Boot-JWT-Authentication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rapter1990%2FSpring-Boot-JWT-Authentication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rapter1990%2FSpring-Boot-JWT-Authentication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rapter1990","download_url":"https://codeload.github.com/Rapter1990/Spring-Boot-JWT-Authentication/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248637780,"owners_count":21137538,"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":["authentication","java","jwt","jwt-authentication","spring-boot","spring-boot-application","spring-security"],"created_at":"2024-11-19T19:28:02.313Z","updated_at":"2025-04-12T22:01:33.642Z","avatar_url":"https://github.com/Rapter1990.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Boot JWT Authentication\n\n![Image description](https://github.com/Rapter1990/Spring-JWT-Authentication/blob/master/New%20Project.png)\n\nIn this project , I show a Spring Boot application that makes use of JWT authentication for securing an exposed REST API.I can benefit from hard-coded user values for user authentication.Any user can consume this REST API only if it has a valid JSON Web Token (JWT).\n\nI develop a Spring Boot application that exposes REST GET API and REST POST API with mapping with relating pathes and then configure Spring Security for JWT.\nBefore allowing the relevant users who access to the API with mapping pathes if a token is valid , REST POST API is used to expose with mapping path named for /authenticate to determine which user will get the valid JSON Web Token.\n\n\n\n\n### Image\n\n\u003ctable style=\"border: 0px;\"\u003e\n  \u003ctr\u003e\n     \u003ctd align=\"center\"\u003e Picture 1 \u003c/td\u003e\n     \u003ctd align=\"center\"\u003e Picture 2 \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003cimg width=\"500\" height=\"500\" src =\"https://github.com/Rapter1990/Spring-JWT-Authentication/blob/master/spring_jwt_1.PNG\"\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg width=\"500\" height=\"500\" src =\"https://github.com/Rapter1990/Spring-JWT-Authentication/blob/master/spring_jwt_2.PNG\"\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n     \u003ctd align=\"center\"\u003e Picture 3 \u003c/td\u003e\n     \u003ctd align=\"center\"\u003e Picture 4 \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003cimg width=\"500\" height=\"500\" src =\"https://github.com/Rapter1990/Spring-JWT-Authentication/blob/master/spring_jwt_3.PNG\"\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg width=\"500\" height=\"500\" src =\"https://github.com/Rapter1990/Spring-JWT-Authentication/blob/master/spring_jwt_4.PNG\"\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n     \u003ctd align=\"center\"\u003e Picture 5 \u003c/td\u003e\n     \u003ctd align=\"center\"\u003e Picture 6 \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003cimg width=\"500\" height=\"500\" src =\"https://github.com/Rapter1990/Spring-JWT-Authentication/blob/master/spring_jwt_5.PNG\"\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg width=\"500\" height=\"500\" src =\"https://github.com/Rapter1990/Spring-JWT-Authentication/blob/master/spring_jwt_6.PNG\"\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n     \u003ctd align=\"center\"\u003e Picture 7 \u003c/td\u003e\n     \u003ctd align=\"center\"\u003e Picture 8 \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003cimg width=\"500\" height=\"500\" src =\"https://github.com/Rapter1990/Spring-JWT-Authentication/blob/master/spring_jwt_7.PNG\"\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg width=\"500\" height=\"500\" src =\"https://github.com/Rapter1990/Spring-JWT-Authentication/blob/master/spring_jwt_8.PNG\"\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n \u003c/table\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frapter1990%2Fspring-boot-jwt-authentication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frapter1990%2Fspring-boot-jwt-authentication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frapter1990%2Fspring-boot-jwt-authentication/lists"}