Spring Security

Simplify the management of user roles in Spring Boot

Spring Security allows us to use role-based control to restrict access to API resources. However, inserting role names as simple…

3 years ago

Create a custom annotation to configure Spring Boot tests

A custom annotation in Spring Boot tests is an easy and flexible way to provide the required configuration. We can…

3 years ago

Keycloak with Spring Boot #4 – Simple guide for roles and authorities

Delegating user management to Keycloak allows us to better focus on meeting the business needs of an application. However, we…

3 years ago

Keycloak with Spring Boot #3 – How to authorize requests in Swagger UI

Swagger offers various methods to authorize requests to our Keycloak secured API. I'll show you how to implement the recommended…

3 years ago

Keycloak with Spring Boot #2 – Spring Security instead of Keycloak in tests

Configuring our Spring Boot API to use Keycloak as an authentication and authorization server can greatly simplify our codebase. However,…

3 years ago

Keycloak with Spring Boot #1 – Configure Spring Security with Keycloak

Keycloak provides simple integration with Spring applications. As a result, we can easily configure our Spring Boot API security to…

3 years ago

How to authorize Basic Auth requests in Spring Boot Swagger UI

We're going to apply Basic Auth on API calls made from Swagger UI. OpenAPI allows us to provide security configuration…

4 years ago

Securing your Spring Boot and Angular app with JWT #2 – Backend

In this article you can read about applying Spring Security to the backend module of a Spring Boot and Angular…

6 years ago

Securing your Spring Boot and Angular app with JWT #1 – Introduction

You can use the JSON Web Token standard as a part of your authentication and authorisation solution in a project built with…

6 years ago