Questions tagged [spring-social]

Spring Social is an extension of the Spring Framework that enables applications to connect with Software-as-a-Service providers such as Twitter, Facebook and other OAuth authentication based APIs. Spring Social provides a ready to use OAuth authentication framework for web based applications.

Spring Social is an extension of the Spring Framework that enables applications to connect with Software-as-a-Service providers such as Twitter, Facebook and other OAuth authentication based APIs. Spring Social provides a ready to use OAuth authentication framework for web based applications.

Features:

  • An extensible service provider framework that greatly simplifies the process of connecting local user accounts to hosted provider accounts.
  • A connect controller that handles the authorization flow between your Java/Spring web application, a service provider, and your users.
  • Java bindings to popular service provider APIs such as Facebook, Twitter, LinkedIn, TripIt, and GitHub.
  • A sign-in controller that enables users to authenticate with your application by signing in through a service provider.
  • Much more...

More Information:

Getting Started Guides:

Related Tags:

714 questions
67
votes
3 answers

How to do rest authentication with Spring Social?

I have implemented Spring Social + Spring Security as outlined in the Spring security examples (and with spring security java config). I reported couple of problems at the time (see https://jira.springsource.org/browse/SEC-2204) all of those are…
aug70co
  • 3,965
  • 5
  • 30
  • 44
34
votes
4 answers

Integrate Spring Security OAuth2 and Spring Social

I'm working with a Spring Boot + Spring Security OAuth2 application that I believe was inspired by examples from Dave Syer. The application is configured to be an OAuth2 authorization server, with a single public client using the Resource Owner…
33
votes
3 answers

Superclass has no null constructors but no arguments were given

Im using Spring Social in my…
nilsi
  • 10,351
  • 10
  • 67
  • 79
29
votes
5 answers

Is there a Spring Security OpenId Registration like stackoverflow?

I cannot find a complete example anywhere of a Spring Security Web App with Open Id registration similar to stackoverflows. I would say I'm pretty techy guy but I find Spring Security extremely intimidating with its weird Spring XML DSL. I have…
Adam Gent
  • 47,843
  • 23
  • 153
  • 203
29
votes
6 answers

What is the difference between spring factory-method and factory-bean?

I am new Springs. In Bean tag I found factory-method and factory-bean Attributes. What is the difference between factory-method and factory-bean? I am using factory-method to call my getInstance static method to create singleton object. What is…
cvsr.sarma
  • 879
  • 1
  • 13
  • 29
29
votes
5 answers

Spring MVC: How to use a request-scoped bean inside a spawned thread?

In a Spring MVC application, I have a request-scoped bean. I inject this bean somewhere. There, the HTTP-request serving thread could possibly spawn a new thread. But whenever I try accessing the request-scoped bean from the newly spawned thread, I…
Abdull
  • 26,371
  • 26
  • 130
  • 172
22
votes
2 answers

Own Spring OAuth2 server together with 3rdparty OAuth providers

In a Spring Boot application, I have an OAuth2 Authorization/Resource servers. Based on this and Spring Security, I have secured my Spring MVC REST API endpoints. In addition to this, I'd like to add authentication to my REST endpoints based on 3rd…
18
votes
2 answers

Spring Social Facebook: "The OAuth2 'state' parameter doesn't match"

I am using Spring Social Facebook within a Spring MVC project to support Facebook login. This is working well in almost all cases, but occasionally I see the following exception in the logs. ERROR…
ba0708
  • 10,180
  • 13
  • 67
  • 99
16
votes
1 answer

Facebook Login with Spring Social using Existing User Access Token

Here's what I currently have: Spring REST service where many of the APIs require the user to be authenticated A 'registration' API (/api/v1/register) A 'login' API that takes username/password (/api/v1/login) 'Facebook Login' API that relies on…
AlexG
  • 1,596
  • 2
  • 17
  • 26
14
votes
2 answers

Spring Boot Hibernate 5 Ignoring @Table and @Column

This is driving me mad. I'm implementing Spring Social and it requires you to have a database table named UserConnection (instead of using the standard naming convention of using an underscore to separate the two words). So in my naive world view, I…
Trevor
  • 1,137
  • 1
  • 19
  • 33
12
votes
2 answers

Is there any jackson json strategy (using annotations or another way), that will execute some logic prior and post deserialization of field?

I need to execute some code after each deserialization is done on a POJO's fields. Is there any way I can do this through some jackson annotation (or other) strategy? One way to go with this is create a custom deserializer for each field type that…
despot
  • 7,167
  • 9
  • 44
  • 63
12
votes
3 answers

Callback URL not approved by Twitter

My application built upon spring-social-twitter that enables users to sign in with Twitter has stopped working recently. I've got an error message as below: Callback URL not approved for this client application. Approved callback URLs can be…
Yuci
  • 27,235
  • 10
  • 114
  • 113
12
votes
2 answers

Rest, Spring own OAuth2 server + OAuth2 providers like Facebook, Google, Yahoo

In Spring Boot application I have secured my Spring MVC REST endpoints with Spring Security and Spring OAuth2. I have own Authorization\Resource servers so in order to comunicate with our API, client(AngularJS) needs to obtain acessToken from my API…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
11
votes
2 answers

Mobile sign up with spring social

I am trying to use spring social for my REST services and my mobile app. I wonder what the best approach is. I am planning to use linkedin, google login and password authentication inside my mobile app. This social login should be connected to…
Ben
  • 2,560
  • 4
  • 29
  • 43
10
votes
1 answer

What is the UsersConnectionRepository for in Spring Social Facebook?

I'm following the directions here and elsewhere: https://github.com/SpringSource/spring-social/wiki/Quick-Start Why do we need to specify a dataSource and UsersConnectionRepository to use Spring Social Facebook? What gets written to our database? Am…
at.
  • 50,922
  • 104
  • 292
  • 461
1
2 3
47 48