In this detailed Resource page, we feature an abundance of Spring Security Tutorials!
Spring Security is a Java/Java EE framework that provides authentication, authorization and other security features for enterprise applications. The project was started in late 2003 as ‘Acegi Security’ (pronounced Ah-see-gee, whose letters are characters 1, 3, 5, 7 and 9 from the English alphabet, in order to prevent name conflicts) by Ben Alex, with it being publicly released under the Apache License in March 2004. Subsequently, Acegi was incorporated into the Spring portfolio as Spring Security, an official Spring sub-project. The first public release under the new name was Spring Security 2.0.0 in April 2008, with commercial support and training available from SpringSource.
If you wish to build up your Spring Security knowledge first, check out our Spring Security 4 Tutorial.
Spring Security Tutorials – Integrations
Learn how to integrate your Spring Security application with 3rd party frameworks
- Spring Security Login Example
In this article we will learn how to use spring security to create a simple login page. You will need an IDE (I am using IDEA IntelliJ), JDK 1.8 or later, Maven 3.0+.
- Spring Security OAuth2 Example
In the traditional client-server authentication model, the client requests an access-restricted resource (protected resource) on the server by authenticating with the server using the resource owner’s credentials.
- Spring Security via Database Authentication Tutorial
In this section, developers learned how to implement the custom login form and authenticate the users using a database in the spring security. Developers can download the sample application as an Eclipse project in the Downloads section.
- GWT Spring Security Example
In this example we will learn how to secure our GWT application using Spring Security. Tools and technologies used in this example are Java 1.8, Eclipse Luna 4.4.2, Eclipse GWT Plugin 2.6.
- Spring MVC Application with Spring Security Example
In this example we will demonstrate how we can implement Spring-Security to secure our web-application. We shall discuss and demonstrate both Authentication as well as the Authorization aspect of an application’s security.
- Spring Security with Maven Tutorial
In this post, we shall demonstrate how to use Maven dependencies for Spring Security for very specific use-cases. The latest versions of all the libraries we use can be found on the Maven Central. Understanding how Maven dependencies work and are managed is important in a project for an effective build cycle and clear concepts about what versions match between various libraries we use in our project.
- Vaadin Spring Security Example
Vaadin is a web application framework written in Java, and is built Google Web Toolkit from Vaadin Ltd. Spring Security is a part of Spring framework that focuses on providing both authentication and authorization to Java applications. Both Vaadin and Spring Security are open sourced and licensed under the Apache 2.0 license.
- Spring Security with Spring REST Web-service
In this example, we will go a step further and attempt to access a REST Web-Service which is secured by Spring Security. We shall use
Spring-RESTto host the REST Web-Service. So let’s start with the project set-up.
- A Simple Web App with Spring Boot, Spring Security and Stormpath – in 15 Minutes
In this demo we will be using the stormpath-default-spring-boot-starter. Its modular design bakes in Spring Boot 1.3.0 and Spring Security 4.0.3 as well as Spring Boot WebMVC and the Thymeleaf templating engine. I will be using my Mac, the Terminal app, and the IntelliJ IDE.
- Java Code Geeks Andygene Web Archetype
This first release aims to provide a project template – architecture for web applications. The name of the archetype is jcg-andygene-archetype and it is hosted at the following location. The license for this set of archetypes is Apache License. Developers are free to change it.
- Securing GWT apps with Spring Security
In this tutorial we will see how to integrate GWT with Spring’s security module, i.e. Spring Security. We will see how to protect the GWT entrypoint, how to retrieve the user’s credentials and how to log the various authentication events. Moreover, we are going to implement a custom authentication provider so that existing authentication schemes can be reused.