This example shows how to build a Spring Boot application that leverages Spring Security for SAML and database authentication.
Please read Spring Security SAML and Database Authentication to see how this example was created.
Prerequisites:
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.
To install this example application, run the following commands:
git clone https://github.com/oktadeveloper/okta-spring-security-saml-db-example.git
cd okta-spring-security-saml-db-exampleThis will get a copy of the project installed locally. To install all of its dependencies and start each app, follow the instructions below.
Please see Set Up Your Okta Account with SAML and Run the Application to see how to configure a SAML app on Okta.
After you've configured everything, start your app.
mvn spring-boot:runOpen your browser to http://localhost:8080 and login using SAML or database credentials.
This example uses the following open source libraries from Okta:
Please post any questions as comments on the blog post, or visit our Okta Developer Forums.
Apache 2.0, see LICENSE.