Custom Login with Spring Boot and Spring Security – UserDetailsService and Custom Login Page
This guide demonstrates how to impelment a custom login mechanism using Spring Boot 2.3.4 and Spring Security. Instead of relying on the default auto‑configuration, you will define your own UserDetailsService, configure a custom login page (JSP), and tailor the WebSecurityConfigurerAdapter to your needs.
Maven Dependencies and Application Prop ...
Posted on Wed, 02 Sep 2026 16:30:18 +0000 by matifibrahim
Configuring CSRF Protection in Spring Security Applications
CSRF (Cross-Site Request Forgery) attacks force authenticated users to submit unintended requests to web applications where they maintain active sessions. Unlike XSS attacks that steal credentials, CSRF exploits the trust relationship between the browser and the server. When a user authenticates, the server establishes a session stored in brows ...
Posted on Wed, 02 Sep 2026 16:26:32 +0000 by FUEL
Monitoring URL Request Frequency and Response Times with Spring Boot Actuator
1. Dependency Configuration
Include the Actuator depandency in your pom.xml:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
2. Request Data Storage Implementation
Use a ConcurrentHashMap to store request metrics per URI (t ...
Posted on Tue, 18 Aug 2026 16:50:14 +0000 by khenriks
Understanding HttpSecurity Architecture in Spring Security
Spring Security fundamentally operates as a filter chain
This filter chain follows the responsibility chain design pattern
HttpSecurity
In earlier versions of Spring Security, configuration was done through XML files using the <http> tag to define HTTP request security settings like user permissions. However, with Spring Boot projects, ...
Posted on Wed, 12 Aug 2026 16:45:14 +0000 by chet139
Integrating Spring Security for Token-Based Authentication and Authorization
1. Introduction to Spring Security
1.1 Framework Overview
Spring is a highly popular and successful Java application development framework. Spring Security, built upon the Spring framework, provides a comprehensive solution for web application security. Generally, web application security includes two parts: user authentication and user authori ...
Posted on Fri, 24 Jul 2026 16:28:33 +0000 by bobbyM
Implementing Authorization in Spring Security
Permission Expressions
Expression
Description
permitAll()
Always returns true, granting access to all users, authenticated or not.
denyAll()
Always returns false, denying access to everyone.
isAnonymous()
Returns true if the current user is anonymous (not logged in).
isRememberMe()
Returns true if the user was authenticated via a & ...
Posted on Sat, 11 Jul 2026 17:24:44 +0000 by boonika
Implementing Cross-Origin Policies, API Documentation, Exception Management, and JWT Authentication in Spring Boot
Understanding and Resolving Cross-Origin Requests
Cross-Origin Resource Sharing (CORS) is triggered when a browser attempts to fetch resources from an origin differing in protocol, domain, or port from the current page. In decoupled frontend-backend architectures, this restriction enforced by the Same-Origin Policy requires explicit configurati ...
Posted on Sun, 28 Jun 2026 17:30:32 +0000 by akimm
Implementing Security in Spring Boot Applications with Spring Security
Introduction to Spring Security
Spring Security provides comprehensive security services for Java EE applications. As a core component of the Spring ecosystem, it implements layered security architecture where each application layer can be protected independently. This framework enables fine-grained access control at the controller, service, an ...
Posted on Sat, 20 Jun 2026 16:49:18 +0000 by RabPHP
Securing Microservice Discovery with Eureka: End-to-End Protection Patterns
Why Discovery Security Matters
When every microservice is reachable over the network, the service registry becomes the first line of defense. An unprotected Eureka instance can be used to:
Inject rogue endpoints into the load-balancer
Exfiltrate configuration metadata
Trigger cascading failures via forged health checks
This guide shows how to ...
Posted on Sun, 17 May 2026 14:56:21 +0000 by markmusicman
Managing Web Application Sessions with Spring Security
Session Creation Policies
Spring Security provides several session creation policies that control how sessions are handled:
stateless: Spring Security does not create or utilize any session. This is ideal for stateless API applications and helps conserve server resources.
To configure session creation strategy, extend WebSecurityConfigurerAda ...
Posted on Fri, 15 May 2026 08:00:00 +0000 by lordfrikk