Home

Awesome

Spring Security OAuth Sample Applications for Okta

This repository contains several sample applications that show you how to integrate various Okta use-cases into your Java application that uses the Spring framework.

Note: Samples would need minimum JDK 17 or above.

Please find the sample that fits your use-case from the table below.

SampleDescriptionUse-Case
Okta-Hosted LoginAn application server that uses the hosted login page on your Okta org, then creates a cookie session for the user in the Spring application.Traditional web applications with server-side rendered pages.
Custom Login PageAn application server that uses the Okta Sign-In Widget on a custom login page within the application, then creates a cookie session for the user in the Spring application.Traditional web applications with a custom login page and server-side rendered pages.
Resource ServerThis is a sample API resource server that shows you how to authenticate requests with access tokens that have been issued by Okta.Single-Page applications.
Front End (bonus)A simple static Single-Page application that can be used with the resource-serverTest the above resource server