Social media seems to be everywhere, and most of us use social media services such as Facebook and Twitter every day. That is why it is only natural that many software projects require a some kind of social media integration.
The most common requirement is that an user must be able to create an user account and sign in by using a social sign in provider such as Facebook and Twitter.
However, some applications require a tighter social media integration. One example of such requirement is that the application wants to send posts to either Facebook or Twitter (or both).
The Spring Social project was born as an answer to these requirements, and my Spring Social tutorial will teach you to integrate Spring Social with your Spring powered applications.
Introducing: Adding Social Sign In to a Spring MVC Web Application
This four-part tutorial describes how you can add social sign in to a “normal” Spring MVC web application. This tutorial consists of the following blog posts:
- Adding Social Sign In to a Spring MVC Web Application: Configuration describes how you can configure an application which uses Spring Social. You will learn how you can get the required dependencies with Maven, create the required common common components, configure the application context of your web application, integrate Spring Social with Spring Security, and configure your web application.
- Adding Social Sign In to a Spring MVC Web Application: Registration and Login describes how you can add registration and login functions to your application. You will learn to create registration and login functions which supports both “normal” registration and social sign in.
- Adding Social Sign In to a Spring MVC Web Application: Unit Testing describes how you can write unit tests for your application. You will learn how you can get the required dependencies with Maven, simulate social sign in, create custom assertions by using FEST-Assert, and write unit tests for the registration function.
- Adding Social Sign In to a Spring MVC Web Application: Integration Testing describes how you can write integration tests for the registration and login functions. You will learn how you can configure your build process, configure your integration tests, provide valid CSRF tokens to Spring Security, and write integration tests for your application.