{"id":21434114,"url":"https://github.com/bernardo-mg/oauth-resource-server-example","last_synced_at":"2025-03-16T22:45:35.398Z","repository":{"id":43209555,"uuid":"396436032","full_name":"Bernardo-MG/oauth-resource-server-example","owner":"Bernardo-MG","description":"Example OAUTH 2 resource server with Spring","archived":false,"fork":false,"pushed_at":"2023-10-25T06:52:40.000Z","size":279,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-23T09:10:25.567Z","etag":null,"topics":["example","oauth2","spring-ws"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bernardo-MG.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-08-15T17:38:14.000Z","updated_at":"2023-02-05T22:24:55.000Z","dependencies_parsed_at":"2023-10-25T07:31:41.584Z","dependency_job_id":null,"html_url":"https://github.com/Bernardo-MG/oauth-resource-server-example","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bernardo-MG%2Foauth-resource-server-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bernardo-MG%2Foauth-resource-server-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bernardo-MG%2Foauth-resource-server-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bernardo-MG%2Foauth-resource-server-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bernardo-MG","download_url":"https://codeload.github.com/Bernardo-MG/oauth-resource-server-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243945529,"owners_count":20372894,"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":["example","oauth2","spring-ws"],"created_at":"2024-11-22T23:33:24.946Z","updated_at":"2025-03-16T22:45:35.365Z","avatar_url":"https://github.com/Bernardo-MG.png","language":"Java","readme":"# OAuth 2 Resource Server Example\n\nExample for setting up a OAuth 2 Resource Server on a web service with Spring Boot. Using Keycloak as the OAuth server.\n\n## Usage\n\nThe project requires an authorization server. The Docker compose file will take care of this, while also running the project:\n\n```\ndocker-compose -f docker/docker-compose.yml --project-name oauth2-resource-server-example up\n```\n\nOnce started, the web service be available at [http://localhost:8080/](http://localhost:8080/).\n\n## Requests with Postman\n\nTo make things easier import `src/test/resources/resource_server.postman_collection.json` into Postman. This file includes all the queries needed to test the project.\n\n## Users\n\n| User      | Password | Permissions |\n|-----------|----------|-------------|\n| test-user | 1234     | read, edit  |\n\nNote that this web service requires secure tokens. The Postman requests includes an authenticated one, which takes care of this.\n\n[![Release docs](https://img.shields.io/badge/docs-release-blue.svg)][site-release]\n[![Development docs](https://img.shields.io/badge/docs-develop-blue.svg)][site-develop]\n\n[![Release javadocs](https://img.shields.io/badge/javadocs-release-blue.svg)][javadoc-release]\n[![Development javadocs](https://img.shields.io/badge/javadocs-develop-blue.svg)][javadoc-develop]\n\n## Features\n\n- [Spring MVC](https://spring.io/)\n- [OAuth2](https://oauth.net/2/)\n- Integrates with [Keycloak](https://www.keycloak.org/)\n- Basic Spring Boot security auditing\n\n## Documentation\n\nDocumentation is always generated for the latest release, kept in the 'master' branch:\n\n- The [latest release documentation page][site-release].\n- The [latest release Javadoc site][javadoc-release].\n\nDocumentation is also generated from the latest snapshot, taken from the 'develop' branch:\n\n- The [the latest snapshot documentation page][site-develop].\n- The [latest snapshot Javadoc site][javadoc-develop].\n\nThe documentation site is actually a Maven site, and its sources are included in the project. If required it can be generated by using the following Maven command:\n\n```\nmvn verify site\n```\n\nThe verify phase is required, otherwise some of the reports won't be generated.\n\n## Collaborate\n\nAny kind of help with the project will be well received, and there are two main ways to give such help:\n\n- Reporting errors and asking for extensions through the issues management\n- or forking the repository and extending the project\n\n### Issues management\n\nIssues are managed at the GitHub [project issues tracker][issues], where any Github user may report bugs or ask for new features.\n\n### Getting the code\n\nIf you wish to fork or modify the code, visit the [GitHub project page][scm], where the latest versions are always kept. Check the 'master' branch for the latest release, and the 'develop' for the current, and stable, development version.\n\n## License\n\nThe project has been released under the [MIT License][license].\n\n[issues]: https://github.com/bernardo-mg/oauth-resource-server-example/issues\n[javadoc-develop]: https://docs.bernardomg.com/development/maven/oauth-resource-server-example/apidocs\n[javadoc-release]: https://docs.bernardomg.com/maven/oauth-resource-server-example/apidocs\n[license]: https://www.opensource.org/licenses/mit-license.php\n[scm]: https://github.com/bernardo-mg/oauth-resource-server-example\n[site-develop]: https://docs.bernardomg.com/development/maven/oauth-resource-server-example\n[site-release]: https://docs.bernardomg.com/maven/oauth-resource-server-example\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernardo-mg%2Foauth-resource-server-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbernardo-mg%2Foauth-resource-server-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernardo-mg%2Foauth-resource-server-example/lists"}