Spring Boot | Star Vote

Building a Single Spring Boot App with Keycloak or Okta as IdP: Introduction

A complete guide on how to implement a single Spring Boot application, called StarVote, with Keycloak or Okta as Identity Provider

Ivan Franchin
3 min readJul 6, 2023

Welcome to our series of articles that will guide you through the step-by-step implementation of the StarVote application using Spring Boot. This application enables users to vote for their favorite movie star.

Our comprehensive tutorial covers both the backend and frontend aspects of the application, including security measures and user authentication with Keycloak or Okta as the Identity Provider.

Let’s take a sneak peek at what we will build!

Pretty cool, isn’t it? 😃

We split our content into sections for easier learning. Each section covers different parts of Star Vote setup so you can understand each part well. This way, you won’t feel overwhelmed with a long article.

Here’s a brief overview of each section:

Overview and Project Setup

In this section, we will provide an overview of the StarVote application and set up the Spring Boot project. We’ll cover dependencies and project structure needed for our application.

Backend Implementation

Here, we’ll focus on developing the backend of the StarVote application. We’ll explore topics such as the application model, services, and controller.

Frontend Implementation

In this section, we’ll shift our focus to the frontend development of the StarVote application. We’ll build the user interface using Thymeleaf and HTML.

Adding Security

In this section, we will explore the necessary steps to secure the application. This includes adding the required dependencies, making UI modifications, and configuring the Web Security settings.

Enabling Keycloak as Identity Provider

Building upon the previous section, we’ll explore how to enable authentication using Keycloak as an Identity Provider. This ensures that only authorized users can access the StarVote application.

Enabling Okta as Identity Provider

In this section, we’ll explore how to enable authentication using Okta as an Identity Provider. We’ll cover the necessary configurations and integration steps.

That’s it

We hope you’ll enjoy this series and feel inspired to develop your own application.

StarVote Tutorial

7 stories

Support and Engagement

If you enjoyed this article and would like to show your support, please consider taking the following actions:

  • 👏 Engage by clapping, highlighting, and replying to my story. I’ll be happy to answer any of your questions;
  • 🌐 Share my story on Social Media;
  • 🔔 Follow me on: Medium | LinkedIn | Twitter | GitHub;
  • ✉️ Subscribe to my newsletter, so you don’t miss out on my latest posts.

--

--

Ivan Franchin

Lead Software Developer with BS and MS in Computer Science. Writing about Java, Spring, software development in general, and emerging technologies.