{"id":20682836,"url":"https://github.com/josdem/spring-boot-authorization-server","last_synced_at":"2025-07-22T15:37:42.988Z","repository":{"id":192134258,"uuid":"686104039","full_name":"josdem/spring-boot-authorization-server","owner":"josdem","description":"This project shows how to implement Oauth 2.0 with Spring Boot Security project","archived":false,"fork":false,"pushed_at":"2024-03-22T13:32:21.000Z","size":126,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-17T15:52:30.032Z","etag":null,"topics":["gradle","java","oauth2","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":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-01T18:51:45.000Z","updated_at":"2024-10-03T04:27:02.000Z","dependencies_parsed_at":"2024-03-20T12:27:01.403Z","dependency_job_id":"efd8d3f6-818c-4e67-a75e-7eb21935835a","html_url":"https://github.com/josdem/spring-boot-authorization-server","commit_stats":null,"previous_names":["josdem/spring-boot-authorization-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josdem%2Fspring-boot-authorization-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josdem%2Fspring-boot-authorization-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josdem%2Fspring-boot-authorization-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josdem%2Fspring-boot-authorization-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/josdem","download_url":"https://codeload.github.com/josdem/spring-boot-authorization-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","spring-boot","spring-security"],"created_at":"2024-11-16T22:14:42.458Z","updated_at":"2025-03-10T20:46:15.394Z","avatar_url":"https://github.com/josdem.png","language":"Java","readme":"Spring Boot Authorization Server\n----------------------------\n\n[![GitHub](https://github.com/josdem/spring-boot-authorization-server/actions/workflows/main.yml/badge.svg)](https://github.com/josdem/spring-boot-authorization-server/actions)\n[![Jenkins](https://ci.josdem.io/job/spring-boot-authorization-server/badge/icon)](https://ci.josdem.io/job/spring-boot-authorization-server/)\n\nThis project shows how to implement [Oauth 2.0](https://oauth.net/2/) with [Spring Boot Security](https://docs.spring.io/spring-security/reference/index.html) project\n\n#### To run the project\n```bash\ngradle bootRun\n```\n\n#### To run the project in production\n```bash\ngradle bootRun -Dspring.profiles.active=prod\n```\n\n#### To run tests\n```bash\ngradle test\n```\n\n#### To run a single test\n```bash\ngradle test --tests ${testName}\n```\n\nWhere: `${testName}` is the name of the test you want to run\n\n#### To issue a token\n```bash\ncurl -X POST http://localhost:8080/oauth2/token -u \"client:secret\" -d \"grant_type=client_credentials\" -d \"scope=write\"\n```\n\nAnd you should get a response like\n\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\n**Note:** If you want to change your credentials: `client:secret` you can do it in `src/main/resources/application.yml` file:\n\n```yaml\nclientId: \"client\"\nclientSecret: \"{noop}secret\"\n```\n\n#### Read this as reference\n\n* http://josdem.io/techtalk/spring/spring_webflux_security/\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosdem%2Fspring-boot-authorization-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosdem%2Fspring-boot-authorization-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosdem%2Fspring-boot-authorization-server/lists"}