Questions tagged [spring-social]

1

votes
0

answer
144

Views

spring-social: SecurityContextHolder.getContext().getAuthentication() returns null

I've been trying to integrate spring-social into our app and am having some difficulty understanding the workflow with regards to who should be setting the access token in the security context. I am using spring-social 1.1.4 libs and spring-social-twitter 1.1.2.RELEASE. I've added social sign in to...
TradeMore Dev
1

votes
0

answer
121

Views

Spring Social Security error

I'm using Spring Social Security in XML notation to authenticate users into my website with Google and Facebook. Everything works fine but after a couple of hours it stops working and users can't authenticate using the social login. I don't know why the GET request to (Google example) https://www.go...
indur
1

votes
1

answer
142

Views

Passing extra query/form parameters through spring social

I'm building a Single Page Application using Spring Social and Spring Security generated by JHipster. I'm trying to capture the original query parameters after a user has been authenticated by some social authentication provider. Example: calling /signin/someprovider?show=someEntityId and after a s...
1

votes
0

answer
189

Views

Spring social Facebook doesn't work in version 2.0.2

Hello everyone when I upgrade my application to spring version 2.0.2 I get this exception: Description: Field connectionFactoryLocator in com.ssp.api.v1.security.SecurityConfiguration required a bean of type 'org.springframework.social.connect.ConnectionFactoryLocator' that could not be found. here...
Joel Garcia
1

votes
0

answer
128

Views

Consider defining a bean of type 'org.springframework.social.twitter.api.Twitter' in your configuration

So I am following https://spring.io/guides/gs/accessing-twitter/ to connect my application to Twitter to get some user data. But it looks like with recent changes to Spring boot (version 2.0.3.RELEASE) and Spring-social-twitter, I am not able to execute the said article successfully. I keep getting...
yogsma
1

votes
1

answer
78

Views

Spring Boot 2 - Where is FacebookAutoConfiguration

I am trying to build facebook application with spring boot 2 and spring social. As I understand Spring Boot v2 pushed away bunch of things. Where can I find FacebookAutoConfiguration class? Do I have to create it by myself now?
user43103
1

votes
0

answer
48

Views

How to fix the redirct url issue in social linked in integration with springmvc

i am facing one issue in linkedIn social integration with spring mvc based web application updated their social library to 1.0a Oauth to 2.0 Oauth in linked in developer network i mentioned Redirect url to http://localhost:8080/Myproject/signin/linkedin here once i run the project linkedin login p...
Jhon
1

votes
0

answer
54

Views

Spring social: authentication with Facebook on machines with a load balancer

My site uses spring social (1.1.6.RELEASE) and spring social facebook (2.0.3.REALEASE) to let users to sign in with their Facebook accounts. Recently, Facebook requires all websites to use HTTPS based URIs for 'Valid OAuth Redirect URIs'. Here is what I have for 'Valid OAuth Redirect URIs' at Faceb...
curious1
1

votes
0

answer
23

Views

direct messaging using spring-social-twitter 1.1.2

I am working on a legacy application that posts Direct Messages to Twitter Users from our product. The API that was used is DirectMessageTemplate.sendDirectMessage(String toScreenName, String text) in spring-social-twitter 1.1.2. The call is now failing with the error message 'Sorry that page does n...
Ravi
1

votes
0

answer
53

Views

CORS error for a server sent redirect URL for facebook social login

So, I have written a REST API using Spring(java), which is secured using Basic Authentication and also responsible for handling the social-logins. Below is the configuration for facebook login. @Configuration @EnableWebSecurity public class SecurityConfig extends WebSecurityConfigurerAdapter { //aut...
TheCoder
1

votes
1

answer
979

Views

An active access token must be used to query information about the current user - OAuthException Spring Social

I'm getting OAuth Exception { 'error': { 'message': 'An active access token must be used to query information about the current user.', 'type': 'OAuthException' } } using spring social ProviderSignInController. As the controller internally takes care of retrieving the access token I'm not knowing h...
priya_satagopan
1

votes
1

answer
1.3k

Views

javax.net.ssl.KeyManagerFactory is a restricted class error with GAE

I have a Spring Social application that I am deploying on Google App Engine, but I'm getting the following error during one of my application workflows: java.lang.NoClassDefFoundError: javax.net.ssl.KeyManagerFactory is a restricted class. Please see the Google App Engine developer's guide for more...
Saket
1

votes
1

answer
350

Views

Spring Social Facebook Plugin - HTTP Status 404 - /ssconnect/facebook

Integration with FaceBook and Twitter using the spring-social plugin are working properly locally, but when I deploy to production, both stop to work. No errors found at the log file catalina.out under Tomcat7. Error is happening after I inform my password in Facebook, after that, Facebook is redire...
André Diniz
1

votes
1

answer
1.1k

Views

Find out if a fb user is app admin in spring social/java

Im developing a Facebook app with java and spring social. Is it possible to find out if a logged in user is admin of the current app? I have been looking through the api but cannot find anything. Or is there any other good way to do this with java. Update: I did not find an specific api call in sp...
Björn
1

votes
1

answer
290

Views

Spring Social and Spring Security : Securing website resources

I'm developing an application using spring-social that allow users to connect via facebook with no sign-up at all, just click the connect button and you are logged in. I am tracking the user via a cookie and making calls to Facebook on behalf of the user using a RESTful API. In case the user is not...
user1782427
1

votes
1

answer
213

Views

Can't get more than 100 friends profiles with facebook using Spring social

I'm trying to access to my friends profiles on facebook using Spring social. It works fine but it seems there is a limit to the number of profiles recovered : I can't get more than 100 profiles (with my account or with a test account). I saw that it is possible to set a limit the number of datas rec...
fxm
1

votes
1

answer
473

Views

Grails Spring Social Plugin Build Error

I get the following error when trying to compile my Grails App using Spring Social plugin: | Error Fatal error during compilation org.apache.tools.ant.BuildException: java.lang.NoClassDefFoundError: org/springframework/social/ApiBinding This is what I have added to my BuildConfig.groovy plugins sect...
Ardavan
1

votes
1

answer
3k

Views

how to programmatically post on facebook page with spring social?

I'm desperately trying to make automatic posts on a facebook page (brand page, and not a user wall). I'm using spring social as framework. The idea is the following: I've a web app using spring social and I want to be able to post status programatically on the related facebook brand page. The brand...
awesome
1

votes
1

answer
707

Views

How to handle ExpiredAuthorizationException happening in spring social facebook?

I was able to use facebook api with Spring Social for a few days (3 months or more), but now the exception 'org.springframework.social.ExpiredAuthorizationException: The authorization has expired' is occurring. So I investigated this issue was resolved since the spring social version 1.1.0.M3 throug...
thalespf
1

votes
1

answer
219

Views

Spring Social for Android Facebook development

I am trying to integrate Spring Social for Android in a non maven application. Can anyone help me by pointing up the complete list of jar files that i require to integrate this into my Android application ? Doing this by trial and error is getting quite cumbersome, as i have to match various jar fil...
AndroidDev
1

votes
1

answer
1.1k

Views

Spring Security and Spring Social in different login pages

I am investigating for a long time an issue I havein my web application where admin signup and login using the traditional approach with username and password and the regular users signup and login using their Facebook account. The two login forms are in different pages; however, I would like the tw...
Shahar Wiener
1

votes
1

answer
651

Views

Spring social linkedin not sending “state” parameter with oAuth2

I am trying to implement Linkedin social login in a Spring Application; I am using the most recent release spring-social-linkedin-1.0.0.RC4 and spring-social-1.0.3.RELEASE. I manage to get to the point where authorization link is sent to Linkedin: https://www.linkedin.com/uas/oauth2/authorization?cl...
Riccardo Cossu
1

votes
1

answer
3.2k

Views

spring social connectivity with Facebook and accessing user data

I have started to work with spring social and following the tutorial from here. and pages that follow. My java file looks like this. import org.springframework.boot.autoconfigure.EnableAutoConfiguration; //import org.springframework.boot.SpringApplication; //import org.springframework.context.annota...
user3250183
1

votes
1

answer
405

Views

Social authentication in JAX-RS

I'm developing a Java application using JPA, EJB, CDI, JAX-RS and AngularJS, running on a WildFly. Currently I use basic authentication, but I would like to improve it with other authentication options, such as Facebook, Twitter or Google+. Spring Social provides a nice set of features to connect w...
cassiomolin
1

votes
1

answer
1.6k

Views

Get access token using spring social facebook api

I need to get the access token from Spring Social API in order to do operations Which the API doesn't provide. for example push message to the client notification icon. I followed spring social facebook via Spring offical doc: https://github.com/spring-guides/gs-accessing-facebook How to use the A...
rayman
1

votes
1

answer
1.3k

Views

Configure spring-social to work via proxy

I tried to run app with spring-social module. But when connection to twitter should be established i got an exception: org.springframework.web.client.ResourceAccessException: I/O error on POST request for 'https://api.twitter.com/oauth/request_token': Connection refused; nested exception is java.net...
Cuzz
1

votes
1

answer
933

Views

share with facebook using Spring-Social and Spring Security

I have integrated social sign-in button [Facebook] with my web application. Its working fine using spring-social and spring security. In my login.jsp I have: facebook Now my registrion controller is: This is the place where I am getting a callback from facebook when the user tries to login for the f...
Arpan Das
1

votes
1

answer
674

Views

AngularJS, Spring Social and CORS

I have an app that I have built using Spring with Spring Social. I was able to connect to Social Networks, it worked well. Then I had the great idea to use angular on the front end instead of jsp and set about replacing my html forms that I used to connect to social networks with http posts using a...
John Deverall
1

votes
1

answer
403

Views

Spring Social applicationURL setup exception

For Spring Social version 1.1.0.RELEASE, I need to set up the applicationUrl for the ProviderSignInController, as my application (a Tomcat app) is hosted behind a proxy (Apache web server). According the Spring Social document, I set it up as below: However, when deploying the application, I get an...
Yuci
1

votes
3

answer
535

Views

connect/twitter POST not redirecting to twitter authorisation

I have created my app on Twitter and now I want to user Spring-Social to manage user authorisations. I follwed this basic tutorial accessing twitter. The REST Server starts up fine, I navigate to host:8080/connect/twitter the default view is rendered. The problem is that when I click the 'connect' b...
Ntobeko Mkhize
1

votes
1

answer
825

Views

Get facebook user cover photo via spring-social-facebook

Is there any way to get the user cover photo via spring-social-facebook? Something similar to this (used to retrieve the profile picture); Via AbstractConnection, method getProfileUrl() Via UserOperations, method getUserProfileImage() Thanks for the help
troig
1

votes
1

answer
578

Views

Spring Social - Facebook.isAuthorized throws NullPointerException

I'm making a web app for a course similar to a social hub, I'm using Java with Spring, and the Spring social module. The point of the app is to have a place where you can browse the feed from your facebook and twitter accounts. So currently the app allows to create an account, sign in, sign out and...
cvalentina
1

votes
3

answer
418

Views

Friends and Followers in Spring Social

I'm using spring-integration-twitter 4.1.6.RELEASE in my project. Using TwitterTemplate I was trying to get all the friends for the authenticated user. So im using this method for it , friendsList = twitterTemplate.friendOperations().getFriends(); But in this case I'm only getting 20 friends as a d...
Neero
1

votes
1

answer
97

Views

Debugging facebook authentication using Spring Security / Social

I'm using Spring Security (4.0.1) and Spring Social (1.1.2) to implement authentication to a Spring MVC application using either a Form of using an existing facebook account. Form authentication is working perfectly. However, facebook authentication is not working. As far as I can see, I've setup th...
semvdwal
1

votes
1

answer
647

Views

Spring Social - Facebook integration

I need to integrate spring-social with Facebook, and get the feeds/post from my company page. Code snippet public static void main(String[] args) { Facebook facebook1 = new FacebookTemplate(''); FeedOperations feedOperations = facebook1.feedOperations(); PagedList feeds = feedOperations.getFeed(); f...
Ankur Singhal
1

votes
1

answer
253

Views

Twitter raw JSON Spring social Twitter

How to get original JSON data tweet using spring social Twitter API ? There is 'Tweet' class, but I didn't find any function that allows to retrieve original tweet content- returned by Twitter in JSON format.
1

votes
1

answer
388

Views

Implementation for Implicit social signup in spring-boot project

By adding the spring-social signin / signup to my current spring-boot project, through the implementation of the classes ConnectionSignUp and SignInAdapter, the application, after the authorization with the social network website, it's requiring the implementation of a mapping for '/signup' in my co...
Kleber Mota
1

votes
1

answer
633

Views

There is an easy way to add social login on Jhipster microservice Gateway?

When I generate a monolithic app using yo, I'm asked if I want to use social login, but this doesn't happen during gateway creation on microservice model. Is there an easy way of adding social login on microservice gateway, or do I need to make it manually?
Lucas Nunes
1

votes
1

answer
825

Views

Top level redirect at client side Facebook Canvas / X-Frame-Options Deny

I am trying to build Facebook Canvas application using Java/Spring Social Facebook library. When an user first time access the Canvas page(apps.facebook.com/mycanvasapp), facebook is doing HTTP POST with 'signed_request' in the body to my app url. As the user is first time accessing the app, faceboo...
1

votes
0

answer
72

Views

Spring social integration via JHipster

Can someone explain to me how Spring Social works with JHipster. I have BE generated via JHipster and would like to have on my custom Client app Facebook, Gmail, Steam and Discord login ?
user3364181

View additional questions