{"id":20682788,"url":"https://github.com/josdem/spring-webflux-resource-server","last_synced_at":"2026-04-12T16:06:06.520Z","repository":{"id":192253974,"uuid":"685756083","full_name":"josdem/spring-webflux-resource-server","owner":"josdem","description":"This project shows how to implement Oauth 2.0 Resource Server with Spring Boot Security project","archived":false,"fork":false,"pushed_at":"2023-09-28T11:10:30.000Z","size":70,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-17T15:52:27.959Z","etag":null,"topics":["gradle","java","oauth2","resource-server","webflux"],"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/josdem.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":"2023-09-01T00:03:50.000Z","updated_at":"2025-01-13T18:07:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"e64b63f5-cce0-4d6b-b18d-ac8f15529663","html_url":"https://github.com/josdem/spring-webflux-resource-server","commit_stats":null,"previous_names":["josdem/spring-webflux-resource-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josdem%2Fspring-webflux-resource-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josdem%2Fspring-webflux-resource-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josdem%2Fspring-webflux-resource-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josdem%2Fspring-webflux-resource-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/josdem","download_url":"https://codeload.github.com/josdem/spring-webflux-resource-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242926219,"owners_count":20207754,"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":["gradle","java","oauth2","resource-server","webflux"],"created_at":"2024-11-16T22:14:35.462Z","updated_at":"2026-04-12T16:06:06.486Z","avatar_url":"https://github.com/josdem.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Spring Boot Resource Server\n----------------------------\n\nThis project shows how to implement [Oauth 2.0 Resource Server](https://docs.spring.io/spring-security/reference/reactive/oauth2/resource-server/index.html) with [Spring Boot Security](https://docs.spring.io/spring-security/reference/index.html) project\n\n#### To run the project\n\n```bash\ngradle bootRun\n```\n\n#### To issue a token\n```bash\ncurl -X POST https://auth.josdem.io/oauth2/token -u \"client:secret\" -d \"grant_type=client_credentials\" -d \"scope=write\"\n```\n\nAnd you should get a response like\n```bash\n{\"access_token\":\"eyJraWQiOiI1YTMwN2I1My03NDM2LTQ4NWUtOTVkZC1mZDkxZjg1YTZmNDkiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJjbGllbnQiLCJhdWQiOiJjbGllbnQiLCJuYmYiOjE2OTM2MDA1MDUsInNjb3BlIjpbIndyaXRlIl0sImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3Q6OTAwMC8iLCJleHAiOjE2OTM2MDA4MDUsImlhdCI6MTY5MzYwMDUwNX0.UsEfCzgaFaix2vxcw4sqobs2ChkvCI-DP1vP7t9uHQXEEhgyhOm6gWEci6PdZa0yoqUW6Yg25YZ03m5rzcolL6CADWSP2tJ4WvPNU4wvRosNTKU94j3Scbbp1M8SBpFQsOdxApMN7W11EULeafIBad_XiuQvrEJHbxowdyDimVSPZQwlh1mamszuU3hVBnhJF_0YceBDtttSfkIvreqq6d7BuPVCJWOjdHwXTGRpi5V8AUqzoJIiAR8-3Z4SrxKJUah5GOgOm4OqZyTO31paE50wphKPq9VT0_cWRM36B7cve6_hXG5qhEaYLu3G-vzk-mBQgECkk-YqEEy_dCmi5Q\",\"scope\":\"write\",\"token_type\":\"Bearer\",\"expires_in\":299}\n```\n\nThen, export the access token from the response:\n```bash\nexport TOKEN=...\n```\n\nThen issue the following request to do a GET:\n```bash\ncurl -H \"Authorization: Bearer $TOKEN\" http://localhost:8080/message\n```\n\nThen issue the following request to do a POST:\n```bash\ncurl -H \"Content-Type: application/json\" -H \"Authorization: Bearer $TOKEN\" -d \"Hello World\" http://localhost:8080/message\n```\n\n**Note:** This project uses this [Authorization Server](https://github.com/josdem/spring-boot-authorization-server) to grant access tokens\n\n#### Read this as reference\n\n* http://josdem.io/techtalk/spring/spring_webflux_security/\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosdem%2Fspring-webflux-resource-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosdem%2Fspring-webflux-resource-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosdem%2Fspring-webflux-resource-server/lists"}