{"id":19792413,"url":"https://github.com/making/demo-jwt","last_synced_at":"2025-05-01T02:30:27.571Z","repository":{"id":39989500,"uuid":"242787139","full_name":"making/demo-jwt","owner":"making","description":"Demo Spring Security + JWT","archived":false,"fork":false,"pushed_at":"2023-03-06T20:18:06.000Z","size":107,"stargazers_count":19,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-06T07:43:11.156Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://demo-jwt.apps.pcfone.io","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/making.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}},"created_at":"2020-02-24T16:34:26.000Z","updated_at":"2024-09-03T09:04:18.000Z","dependencies_parsed_at":"2023-02-12T05:01:35.737Z","dependency_job_id":null,"html_url":"https://github.com/making/demo-jwt","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/making%2Fdemo-jwt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/making%2Fdemo-jwt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/making%2Fdemo-jwt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/making%2Fdemo-jwt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/making","download_url":"https://codeload.github.com/making/demo-jwt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251812230,"owners_count":21647866,"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":[],"created_at":"2024-11-12T07:06:53.752Z","updated_at":"2025-05-01T02:30:27.349Z","avatar_url":"https://github.com/making.png","language":"Java","readme":"# Demo using JWT in Spring Security\n\nThis app demonstrates standalone JWT authorization in Spring Security using [OAuth 2.0 Resource Server feature](https://docs.spring.io/spring-security/site/docs/5.2.2.RELEASE/reference/htmlsingle/#oauth2resourceserver).\n\nActually it mimics OAuth2's Resource Owner Password Credentials flow.\n\n```\nACCESS_TOKEN=$(curl -s localhost:8080/oauth/token -d grant_type=password -d username=demo -d password=demo | jq -r .access_token)\n\nTODO_ID=$(curl -s localhost:8080/todos -H \"Authorization: Bearer ${ACCESS_TOKEN}\" -H \"Content-Type: application/json\" -d '{\"todoTitle\": \"Demo\"}' | jq -r .todoId)\ncurl -s localhost:8080/todos -H \"Authorization: Bearer ${ACCESS_TOKEN}\"\ncurl -s localhost:8080/todos/${TODO_ID} -H \"Authorization: Bearer ${ACCESS_TOKEN}\"\ncurl -s -X PUT localhost:8080/todos/${TODO_ID} -H \"Authorization: Bearer ${ACCESS_TOKEN}\" -H \"Content-Type: application/json\" -d '{\"finished\": \"true\"}'\ncurl -s -X DELETE localhost:8080/todos/${TODO_ID} -H \"Authorization: Bearer ${ACCESS_TOKEN}\"\ncurl -s localhost:8080/todos -H \"Authorization: Bearer ${ACCESS_TOKEN}\"\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaking%2Fdemo-jwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaking%2Fdemo-jwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaking%2Fdemo-jwt/lists"}