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, then I also show how to create user Roles and Authorities and how to use Spring Method Level Security annotations in my video course: RESTful Web…Read More Spring Method-Level Security with @PreAuthorize
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 secure a web service request URL so only authenticated users with a default username, password and role can access it. If you use…Read More Spring Security Default Username, Password, Role
In this Spring Boot tutorial, you will learn how to get the details of the currently authenticated principal user. There is more than one way to get currently authenticated user details and in this blog post, I am going to share with you a few. Most likely you already have Spring Security configured for your…Read More Spring Security. Get Authenticated Principal Details.
In this Spring Boot tutorial, you will learn how to implement User Authentication(User Login) functionality for your RESTful Web Service application. There is also a step-by-step video demonstration on how to do User Authentication available here. The user authentication functionality we are going to implement in this tutorial will work the following way: A user…Read More User Authentication – Spring Boot, Spring Security, JWT
In this tutorial, I am going to share with you how to allow access to your Microservice from an IP address of Zuul API Gateway only. For a step by step series of video lessons, please check this page: Spring Boot Microservices and Spring Cloud. In my previous tutorial, I have shared with you how…Read More Allow Only IP Address of Zuul API Gateway
In this tutorial, you will learn how to add Spring Security to your project so that we can use Spring Security to encrypt user passwords. I assume you already have a project created with Spring Boot, but in case you do not have one, check out my blog post on how to “Create a very…Read More Encrypt User Password with Spring Security