This example app shows how to add social login to a Spring Boot app with Okta.
Please read Add Social Login to Your Spring Boot 2.0 App to see how this app was created.
Prerequisites: Java 11 and an Okta Developer Account.
Okta 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.
Before you begin, you’ll need a free Okta developer account. Install the Okta CLI and run okta register
to sign up for a new account. If you already have an account, run okta login
. Then, run okta apps create
. Select the default app name, or change it as you see fit. Choose Web and press Enter.
Select Other. Then, change the Redirect URI to http://localhost:8080/authorization-code/callback
and use http://localhost:8080
for the Logout Redirect URI.
Copy src/main/resources/application.template.yml
to src/main/resources/application.yml
and fill in the necessary information.
See these instructions to complete your social login setup.
This example uses the following open source libraries:
Please post any questions as comments on the blog post, or visit our Okta Developer Forums.
Apache 2.0, see LICENSE.