This article discusses how to secure a Spring Boot application with Keycloak Identity Server. At the end of it, will learn how to use the Spring Boot Keycloak starter which provides a set of configurable beans and support for various Keycloak features, such as authentication and authorization, user management, and client registration.
Authentication
Securing Spring Boot applications with LDAP
LDAP is commonly used in Spring Boot applications as a source of authentication and authorization information. In this tutorial we will learn how to secure a simple Spring Boot Web application using an embedded LDAP Server.
Using BCryptPasswordEncoder to encrypt your passwords
In this tutorial we will learn how to generate encrypted passwords using BCryptPasswordEncoder.
Securing Spring Boot applications with JDBC Authentication
This tutorial will teach you how to secure your Spring Boot applications using a JDBC Datasource and the H2 Database. We will create a sample REST Controller with two method endpoints, each one available to a distinct Role.
Securing Spring Boot with In-Memory basic authentication
In this tutorial we will learn how to enable in-memory basic authentication for a simple REST Service using Spring Boot. We will configure two different users with different Roles and add a Test class to verify the in-memory basic authentication.
Configuring Spring Boot authentication using In-memory and Database providers
In this tutorial we will learn how to secure Spring Boot Web applications using different security providers from the default Security user/password to In-Memory Security. Finally we will switch to Database authentication using mysql as a database.