{"id":20477312,"url":"https://github.com/jpomykala/spring-mvc-jwt-example","last_synced_at":"2025-07-08T13:04:27.414Z","repository":{"id":79548043,"uuid":"78433894","full_name":"jpomykala/spring-mvc-jwt-example","owner":"jpomykala","description":"The project was created to share Spring/JWT solutions among my friends","archived":false,"fork":false,"pushed_at":"2021-01-04T15:38:49.000Z","size":122,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T10:12:51.536Z","etag":null,"topics":["jwt","spring","spring-boot","spring-framework","spring-mvc-jwt"],"latest_commit_sha":null,"homepage":"https://jpomykala.com","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/jpomykala.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":"2017-01-09T14:01:02.000Z","updated_at":"2024-06-16T12:44:04.000Z","dependencies_parsed_at":"2023-03-12T08:35:17.429Z","dependency_job_id":null,"html_url":"https://github.com/jpomykala/spring-mvc-jwt-example","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/jpomykala%2Fspring-mvc-jwt-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpomykala%2Fspring-mvc-jwt-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpomykala%2Fspring-mvc-jwt-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpomykala%2Fspring-mvc-jwt-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpomykala","download_url":"https://codeload.github.com/jpomykala/spring-mvc-jwt-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248717251,"owners_count":21150388,"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","spring","spring-boot","spring-framework","spring-mvc-jwt"],"created_at":"2024-11-15T15:27:26.239Z","updated_at":"2025-04-13T12:51:31.980Z","avatar_url":"https://github.com/jpomykala.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spring-mvc-jwt-example\n\nSample Spring MVC application using JWT tokens and Spring Security \n\nKeep It Simple Stupid\n\nCheckout my [website](https://jpomykala.com) or [follow me on Twitter](https://twitter.com/jakub_pomykala)\n\n### Register new user\n\n```\ncurl -X POST \n--header 'Content-Type: application/json' \n--header 'Accept: */*' -d '\n{\"email\":\"jakub.pomykala%40gmail.com\",\n\"firstName\":\"Jakub\",\n\"token\":\"egFacebookToken\",\n\"provider\":\"FACEBOOK\"\n}' \n'http://localhost:9200/auth/sign'\n```\n### Access to restricted endpoint by `@PreAuthorize(\"hasRole('ROLE_USER')\")`\n\n```\ncurl -X POST\n--header 'Content-Type: application/json' \n--header 'Accept: */*' \n--header 'Authorization: \u003cjwt_token\u003e' \n'http://localhost:9200/tags?name=sometag'\n```\n\n### Utils\n* H2 Database console `http://localhost:9400`\n* Swagger `http://localhost:9200/swagger-ui.html`\n\n### TODO\n* Tests ;)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpomykala%2Fspring-mvc-jwt-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpomykala%2Fspring-mvc-jwt-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpomykala%2Fspring-mvc-jwt-example/lists"}