Quantcast
Channel: Spring Security – Apps Developer Blog
Browsing latest articles
Browse All 10 View Live

Spring Security Default Username, Password, Role

In this Spring Security tutorial, you will learn how to enable Basic Authentication for your Spring Boot project and configure the default username, password and user role. You will also learn how to...

View Article


Spring Security In-Memory Authentication

This tutorial will teach you how to add Spring Security to your project and enable in-memory basic authentication. You will learn how to configure two different users with different Roles and...

View Article

Add H2 Database to Spring Boot with Spring Security: A Guide

In this tutorial, I will show you how to add support for the H2 in-memory database to your Spring Boot project with Spring Security enabled. By the end of this tutorial, you will be able to watch a...

View Article

Spring Method-Level Security with @PreAuthorize

In this Spring Boot Security tutorial, you will learn how to use Spring method-level security to secure RestController methods with @PreAuthorize annotation. If you are interested in video lessons,...

View Article

@PostAuthorize Security Annotation Example

In this tutorial, you will learn how to use the @PostAuthorize annotation to secure the return of the method’s return value in your Spring Boot Application. The @PostAuthorize annotation is evaluated...

View Article


Spring Security @Secured: Method-Level Protection

In this Spring Security tutorial, you will learn how to enable and use the Method Level Security with a @Secured annotation. @Secured is a Spring Security annotation used to specify that a method...

View Article

Testing Method Security in Spring Boot

Method security testing is the process of testing the security of each method to make sure that only authorized users can access them. By testing the method-level security, we can ensure that our...

View Article

How to Secure Spring Boot Actuator Endpoints with Basic Authentication

In this tutorial, I will explain in detail how to secure sensitive Spring Boot Actuator Endpoints using Spring Boot version 3. This tutorial is intended for beginners who want to learn how to monitor...

View Article


Securing Spring Boot Actuator Endpoints: Best Practices

Spring Boot Actuator is a useful feature that provides developers with a set of tools to monitor and manage their applications. However, some of the actuator endpoints are sensitive and can potentially...

View Article


Spring Method Security: Customize Error Message

In this tutorial, you will learn how to return a custom error message if the conditions of the Spring Method Security are not met. To learn more about method-level security annotations read: Spring...

View Article
Browsing latest articles
Browse All 10 View Live