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
5
votes
1 answer

Hibernate having difficulty with '@' character in HQL

Working with hibernate and spring social, I am trying to query the database by email address. when i do this query: public Account findAccountByUsername(String username) { Session session = sessionFactory.getCurrentSession(); String…
Gleeb
  • 10,773
  • 26
  • 92
  • 135
5
votes
1 answer

Spring Security, Rest api and Facebook login from mobile device

I'm developing a web application that has a REST api. At the moment the Api are protected in the server side trough spring security with a form-login authentication. Recently I also added spring social to allow access with facebook and twitter and…
ddelizia
  • 1,571
  • 5
  • 30
  • 54
4
votes
3 answers

Spring Social Facebook - publish/post API details

I have been looking into Spring Social Facebook's publish(objectId, connectionName, data) API, but am not sure of the usage of this API (sadly, due to lack of javadocs!). Can someone point me to a comprehensive sample usage of the API, please? What…
Saket
  • 45,521
  • 12
  • 59
  • 79
4
votes
1 answer

Spring Social : OAuthException: Response body is incorrect. Can't extract a token from this

Can any one help me on this, please I get the following exception when I try to parse Facebook token, using spring social org.scribe.exceptions.OAuthException: Response body is incorrect. Can't extract a token from this: This is my code : …
4
votes
2 answers

Spring Boot OAuth 2.0 and OAuth 1.0a clients in same app

Anybody have experience using OAuth2.0 and OAuth 1.0a client authentication in same Spring Boot application? Having some trouble getting the 2 working in the same system. Our use case - User can connect multiple 3rd party accounts to our web app.…
4
votes
0 answers

Compatibility of Spring Boot 2.0 and Spring Social

Seems like the latest release version of Spring Boot - 2.0 - is not compatible with any currently available version of Spring Social. Can anyone confirm this? And if it is really so, can we be sure that a new version of Spring Social compatible…
Victor Dombrovsky
  • 2,955
  • 3
  • 21
  • 33
4
votes
3 answers

Twitter API GET user_timeline reply/comment count

Is there any way to get the comment/reply count for a tweet using GET statuses/user_timeline in addition to favorite_count and retweet_count which are already returned? Thanks!
4
votes
1 answer

Spring social Authorisation Exception with Facebook

My website has suddenly started reporting this error when ever anyone logs in with Facebook: HTTP Status 500 - Authorization is required for the operation, but the API binding was created without authorization. type Exception report message…
Matthew Taylor
  • 13,365
  • 3
  • 17
  • 44
4
votes
4 answers

Spring Request scoped beans in lambda

I have a spring application that injects certain beans are injexted based on the request context. In this example it is the Facebook bean. @RestController @RequestMapping("facebook") public class FacebookInjectionController { @Autowired …
arhimmel
  • 81
  • 1
  • 5
4
votes
2 answers

@WithUserDetails does not seem to work

I have an application in which I use Spring Social Security for authentication and authorization. Unfortunately I am having some problems with mocking Spring Security. It seems that it does not work at all. I have a REST controller that returns 404…
4
votes
1 answer

How to get location based tweets using Spring social with Twitter Streaming API?

I need to live feed the tweets based on geolocation. By Twitter API documentation I understand we can search based on geolocaion. But is it possible to stream based on geolocaion? and i use spring social twitter for API integration. …
4
votes
1 answer

Why my project fails only once it is published to google server?

The code just works correctly in my local environment. I am using google app engine + spring mvc, security and social. I am getting this error whenever I click on the "sign in" button, accept the consent screen and when it comes back to my site it…
4
votes
4 answers

EnableOAuth2Sso simultaneously for multiple social networks

I am implementing a spring boot application that needs to provide OAuth2 token authorization and support multiple social services (google+, facebook etc). The user should be able to select his preferred social network and sign-in using the OAuth2…
4
votes
1 answer

Confirming user credentials in Facebook/Google OAuth2

Scenario: I have been developing a web application for management of small and medium-sized enterprises. Some time ago we used login and password authentication that were stored in our database. Nowadays when "everyone uses facebook" we moved to…
Marek Raki
  • 3,056
  • 3
  • 27
  • 50
4
votes
0 answers

Spring Social authentication filter not working, how can I debug it?

I'm having trouble with Spring SocialAuthenticationFilter, I see that it's loaded in the filter chain but when I access "/auth/facebook?code=...", it does not process that input. Here is my WebSecurityConfig's configure method: @Override protected…