Harmonic Development

RSS

Posts tagged with "spring social mvc security twiter facebook oauth"

Dec 1

Adding Spring Social to a Spring MVC and Spring Security Web App, Part 2

In Part I of this series, we covered adding the jars/dependencies needed to start using Spring Social in a Spring MVC and Spring Security Web application. We also covered the classes involved in persisting users’ social connection information.

Now we’ll configure our Spring Social related beans. Then we’ll start modifying the MVC configuration and classes to start making Spring Social functionality available to users.

Read More

Dec 1

Adding Spring Social to a Spring MVC and Spring Security Web App, Part 1

This series of posts will explain step by step how to add Spring Social to an existing Web application that uses Spring MVC and Spring Security. You will add support for new users to sign in to your application using their Facebook/Twitter accounts. You will add support for current users to associate their Facebook/Twitter accounts with their accounts in your application, so that they too can log in to your application using their Facebook/Twitter accounts. Your application can then also act on a user’s behalf on Facebook/Twitter.

Much of this information is drawn from the Spring Social Core reference documentation. I found myself jumping back and forth between my code and that documentation and feeling like, while the documentation did present most of the necessary information, it did not necessarily present that information in the order in which it became relevant to me during the process of integrating Spring Social into an app. So, I thought I would try to publish a step by step guide to supplement the documentation.

I am going to include information for incorporating both Facebook and Twitter support. If you would like to just include support for one or the other, please note that you will have to edit the example configurations and code appropriately.

Read More