Harmonic Development

RSS

First of all thanks for your useful guide about integration of spring social and spring security. I'm facing some problems configuring ConnectionRepository and UserConnectionRepository in SocialConfig. I posted my problem on Stack Overflow (/questions/9462739/how-to-configure-spring-social). Please can you help me in some way?

It looks like your question on Stack Overflow isn’t available anymore? If you have a new like I’d gladly try to answer your question there. Otherwise I am going to try to make available soon the code for a complete web app that uses Spring Social and Spring Security together. I will post about it when I’ve made the code available. Thanks for reading my posts!

Dec 2

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

So far we have implemented and configured the classes for persisting social connection information for users, and tied Spring Social’s Web support in to our sign in and sign up processes in Spring MVC and Spring Security. We have a few last changes to make to our Spring MVC, Java web app, and Spring Security configuration. Then we’ll actually make all this awesome new functionality available in the views of our application. Then we’ll be done! Suddenly way more people will be using your Web application because they can sign in quickly and easily using their Facebook and Twitter accounts. And your app can get social by acting on behalf of your users on their social networks. And best of all it will be trivial for you to add support for other social network providers (e.g. LinkedIn, GitHub, Foursquare, etc.).

Read More

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