{"id":20307254,"url":"https://github.com/oktadev/okta-spring-logout-example","last_synced_at":"2025-04-11T15:10:27.705Z","repository":{"id":53758779,"uuid":"250379107","full_name":"oktadev/okta-spring-logout-example","owner":"oktadev","description":"An example Spring Boot application that is used to demonstrate the various logout options with Spring Security and OIDC.","archived":false,"fork":false,"pushed_at":"2023-09-19T16:24:16.000Z","size":60,"stargazers_count":7,"open_issues_count":3,"forks_count":12,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-25T11:11:33.015Z","etag":null,"topics":["java","logout","oauth2","oidc","spring-boot","spring-security"],"latest_commit_sha":null,"homepage":"https://developer.okta.com/blog/2020/03/27/spring-oidc-logout-options","language":"HTML","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":"2020-03-26T21:47:54.000Z","updated_at":"2025-01-29T20:25:12.000Z","dependencies_parsed_at":"2022-09-22T13:54:54.038Z","dependency_job_id":null,"html_url":"https://github.com/oktadev/okta-spring-logout-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-logout-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-spring-logout-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-spring-logout-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-spring-logout-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oktadev","download_url":"https://codeload.github.com/oktadev/okta-spring-logout-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248429105,"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":["java","logout","oauth2","oidc","spring-boot","spring-security"],"created_at":"2024-11-14T17:16:56.418Z","updated_at":"2025-04-11T15:10:27.681Z","avatar_url":"https://github.com/oktadev.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenID Connect Logout Options with Spring Boot\n  \nThis repository contains an example Spring Boot application that is used to demonstrate the various logout options with Spring Security and OIDC. \n\nPlease read [OpenID Connect Logout Options with Spring Boot][blog-post] to see how this app was created.\n\n**Prerequisites:** \n* [Java 8+](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* [Links](#links)\n* [Help](#help)\n* [License](#license)\n\n## Spring Boot Example\n\nTo install this example, run the following commands:\n\n```bash\ngit clone https://github.com/oktadeveloper/okta-spring-logout-example.git\ncd okta-spring-logout-example\n```\n\n### Create a Web Application in Okta\n\nLog in to your Okta Developer account (or [sign up](https://developer.okta.com/signup/) if you don't have an account).\n\n1. From the **Applications** page, choose **Add Application**.\n2. On the Create New Application page, select **Web**.\n3. Give your app a memorable name, add `http://localhost:8080/login/oauth2/code/okta` as a Login redirect URI, select **Refresh Token** (in addition to **Authorization Code**), and click **Done**.\n\nCopy the issuer (found under **API** \u003e **Authorization Servers**), client ID, and client secret into the `application.properties` of the `api-gateway` and `car-service` projects.\n\n```properties\nspring.security.oauth2.client.provider.okta.issuer-uri=https://{yourOktaDomain}/oauth2/default\nspring.security.oauth2.client.registration.okta.client-id=$clientId\nspring.security.oauth2.client.registration.okta.client-secret=$clientSecret\n```\n\nThen, run all the projects with `./mvnw` in separate terminal windows. You should be able to navigate to `http://localhost:8080` to see the application.\n\n## Links\n\nThese examples uses the following open source libraries:\n \n* [Spring Boot](https://spring.io/projects/spring-boot)\n* [Spring Security](https://spring.io/projects/spring-security)\n* [OpenJDK](https://openjdk.java.net/)\n\n## Help\n\nPlease post any questions as comments on the example's [blog post][blog-post], or on the [Okta Developer Forums](https://devforum.okta.com/).\n\n## License\n\nApache 2.0, see [LICENSE](LICENSE).\n\n[blog-post]: https://developer.okta.com/blog/2020/03/27/spring-oidc-logout-options\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-spring-logout-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foktadev%2Fokta-spring-logout-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-spring-logout-example/lists"}