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 8 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.
You will need to create an OIDC Application in Okta to get your settings to perform authentication.
- Log in to your developer account on developer.okta.com.
- Navigate to Applications and click on Add Application.
- Select Web and click Next.
- Give the application a name, add
http://localhost:8080/authorization-code/callback
as a Login redirect URI, and click Done. - Edit the project and enable "Implicit (Hybrid)" as a grant type and click Save.
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. You can also email developers@okta.com if you'd like to create a support ticket.
Apache 2.0, see LICENSE.