Spring Security Authentication with Persistent Remember Me example

Overview This article will show how to configure Remember Me functionality in Spring Security – using the standard cookie approach with persistence token. Before reading this article I would recommend to go through my previous blog on Spring Security Remember me Web Flow. As discussed, Spring Security provides two implementations for Remember-Me : 1. Simple Hash-Based Token Approach : It uses hashing to preserve the security of cookie-based...

Spring Security Remember Me Authentication with Login Filter

Overview : This article will show how to set up Remember Me functionality in Spring Security – using standard cookie approach. Also we will configure login form with UsernamePasswordAuthenticationFilter custom filter. Before reading this article I would recommend to go through my previous blog on Spring Security Remember me Web Flow. As discussed, Spring Security provides two implementations for Remember-Me : 1. Simple Hash-Based Token Approach...

Remember-Me Authentication in Spring Security

Introduction : Remember-me or persistent-login authentication refers to web sites being able to remember the identity of a principal between sessions. This is typically accomplished by sending a cookie to the browser, with the cookie being detected during future sessions and causing automated login to take place. Spring Security provides the necessary hooks for these operations to take place and has two concrete remember-me implementations. One...

Spring security entry point and role base login example

First I would recommend you to go through my previous blog post I have written for Spring Security hello world example. Today I am going to explain a simple example of why to use entry point in spring security and how to use role based login in Spring Security 4. First we will see a spring security flow diagram of today's implementation In the above diagram, when user log-in by providing credentials then spring filter will evaluate user...