{"id":20307256,"url":"https://github.com/oktadev/okta-spring-microservices-https-example","last_synced_at":"2025-04-11T15:10:35.919Z","repository":{"id":52671770,"uuid":"173827134","full_name":"oktadev/okta-spring-microservices-https-example","owner":"oktadev","description":"Spring Microservices: Secure Service-to-Service Communication","archived":false,"fork":false,"pushed_at":"2021-04-21T14:53:16.000Z","size":90,"stargazers_count":11,"open_issues_count":0,"forks_count":8,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-25T11:11:34.325Z","etag":null,"topics":["https","oauth2","spring","spring-boot","spring-cloud","spring-cloud-config"],"latest_commit_sha":null,"homepage":"https://developer.okta.com/blog/2019/03/07/spring-microservices-https-oauth2","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/oktadev.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":"2019-03-04T21:51:23.000Z","updated_at":"2024-04-25T17:08:02.000Z","dependencies_parsed_at":"2022-08-21T15:00:24.029Z","dependency_job_id":null,"html_url":"https://github.com/oktadev/okta-spring-microservices-https-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/oktadev%2Fokta-spring-microservices-https-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-spring-microservices-https-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-spring-microservices-https-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-spring-microservices-https-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oktadev","download_url":"https://codeload.github.com/oktadev/okta-spring-microservices-https-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248429104,"owners_count":21101783,"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":["https","oauth2","spring","spring-boot","spring-cloud","spring-cloud-config"],"created_at":"2024-11-14T17:16:56.662Z","updated_at":"2025-04-11T15:10:35.901Z","avatar_url":"https://github.com/oktadev.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Microservices with HTTPS and OAuth 2.0\n\nThis example shows how to create a microservices architecture and secure communication between them using HTTPS and OAuth 2.0. \n\nPlease read [Secure Service-to-Service Spring Microservices with HTTPS and OAuth 2.0](https://developer.okta.com/blog/2019/03/07/spring-microservices-https-oauth2) for a tutorial that shows you how to build this application. \n\n**Prerequisites:** [Java 8 or 11](https://adoptopenjdk.net/).\n\n\u003e [Okta](https://developer.okta.com/) has Authentication and User Management APIs that reduce development time with instant-on, scalable user infrastructure. Okta's intuitive API and expert support make it easy for developers to authenticate, manage and secure users and roles in any application.\n\n* [Getting Started](#getting-started)\n* [Help](#help)\n* [Links](#links)\n* [License](#license)\n\n## Getting Started\n\nTo install this example application, run the following commands:\n\n```bash\ngit clone https://github.com/oktadeveloper/okta-spring-microservices-https-example.git\ncd okta-spring-microservices-https-example\n```\n\n### Create an Okta Developer Account\n\nIf you don't have one, [create an Okta Developer account](https://developer.okta.com/signup/). After you've completed the setup process, log in to your account and navigate to **Applications** \u003e **Add Application**. Click **Web** and **Next**. On the next page, enter a name for your app (e.g., \"Spring Docker\"), then click **Done**. \n\nCopy your issuer (found under **API** \u003e **Authorization Servers**), client ID, and client secret into `config-data/school-ui.properties`.\n\nCreate a second Web application and name it something like \"Spring Docker Production\". Copy the client ID and secret into `config-data/school-ui-production.properties`. \n\nCreate a third Web application and name it something like \"Spring Server to Server\". Copy the client ID and secret into `config-data/school-service.properties`. \n\nRun the following command from the root folder to create Docker containers for all your apps.\n\n```shell\n./mvnw clean install\n```\n\nThen you can start your microservices architecture using Docker Compose:\n\n```shell\ndocker-compose up -d\n```\n\n**TIP:** You can use [Kitematic](https://kitematic.com/) to view your container logs and make sure everything starts OK.\n\nAfter everything starts, you should be able to log in with your credentials at `http://localhost:8080`.\n\n## Links\n\nThis example uses the following open source projects:\n\n* [Okta Spring Boot Starter](https://github.com/okta/okta-spring-boot)\n* [Spring Boot](https://spring.io/projects/spring-boot)\n* [Spring Cloud](https://spring.io/projects/spring-cloud)\n* [Spring Security](https://spring.io/projects/spring-security)\n\n## Help\n\nPlease post any questions as comments on this repo's [blog post](https://developer.okta.com/blog/2019/03/07/spring-microservices-https-oauth2), or visit our [Okta Developer Forums](https://devforum.okta.com/). \n\n## License\n\nApache 2.0, see [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-spring-microservices-https-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foktadev%2Fokta-spring-microservices-https-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-spring-microservices-https-example/lists"}