Okta Integration with Spring Boot+HTML5
Overview
Simple TODO app built on top of Spring Boot and HTML5.
Running the App
To start the application, you will need to update its application.yaml
with next properties:
okta.oauth2.issuer: {Find in your Dashboard, top right corner}
okta.oauth2.clientId: {Created as a part of your Okta Web App}
okta.oauth2.clientSecret: {Created as a part of your Okta Web App}
After your Okta integration is configured, you will need to start the app:
gradle bootRun
Using the App
Assuming the app runs on the default port, go to http://localhost:8080
:
Figure 1: Home Screen of Demo App
The application will require you to login using the credentials specified in your Okta Dashboard. By default, you have at least one user associated with the email you used to create Okta App:
Figure 2: Okta Authentication Widget
After you're authenticated, go ahead and create new todo items, delete existing ones or complete items you are done with.
Figure 3: Okta Authentication Widget
Note
If you encounter an exception, "400 Bad Request; The 'redirect_uri' parameter must be an absolute URI", follow steps described here.
Acknowledgments
This project is based: