Spring Security HTTP Basic Authentication Example

37,202 views
By Abhijit Ghosh on Sep 9, 2013 1:36:07 PM

HTTP basic authentication (BA) is a simple authentication mechanism. When a web client requests any secured web resources, server sends an HTTP response with status code 401 (Unauthorized) and WWW-Authenticate HTTP header like WWW-Authenticate: Basic realm="realm here". And browser pops up a login dialog prompting for User name and Password for that realm.

This example shows how to configure HTTP basic authentication using Spring Security framework.

Tags:

Spring Security Custom Login Form Example

83,832 views
By Abhijit Ghosh on Sep 5, 2013 11:23:47 AM

In previous posts Spring Security 3 Hello World Example and Spring Security Logout Example, we have used default login form generated by Spring Security framework. Now we'll set up a custom login form for authentication with username and password.

Tags:

Spring Security Logout Example

49,662 views
By Abhijit Ghosh on Jul 17, 2013 11:13:01 PM

Spring Security provides Logout Handling Service for logging out by navigating to a particular URL (by default /j_spring_security_logout). LogoutFilter starts processing when a request comes for /j_spring_security_logout url and delegates to LogoutHandler(s) to perform the actual logout functionality like clearing security context, invalidating session, etc. Based on logout configuration, a redirect will be performed to the URL logout-success-url after logout.

In this example, we'll integrate Spring Logout handling mechanism in Spring Security 3 Hello World Example to demonstrate logout functionality.

Tags:

Spring Security 3 Hello World Example

41,770 views
By Abhijit Ghosh on Jul 11, 2013 3:06:46 PM

Security is of great concern in any web application. If you are looking for a proven and industry standard solution to secure your Java/J2ee based application, then widely used and highly customizable authentication and access control framework - Spring Security is well worth considering.

This post will show all the steps to setup, configure and integrate Spring Security 3 to protect your web application from being breached using a simple hello world example.

Tags:

Spring Asm Dependency Issue: java.lang.IncompatibleClassChangeError - Fixed

28,481 views
By Abhijit Ghosh on Jun 10, 2013 2:14:44 PM

If you have migrated / upgraded your project to Spring Framework 3.2 and project builds successfully but when application starts, you are getting IncompatibleClassChangeError, then this post will help you to resolve the same.

Tags:

About this 'Hello World' site

This site is mainly developed to share coding and technology learning experiences on java / j2ee based technologies.

Simple tutorials / codes have been shared to learn a new technology. Full source code is also available for download.