spring-social

How to specify OAuth2 scope with spring-social-security SocialAuthenticationFilter?

≡放荡痞女 提交于 2019-12-06 15:59:50
问题 I'm using Spring Social with Spring Security to authenticate users and automatically create local accounts on my web app. How do I provide the OAuth2 scope for authentication? In the spring-social-samples, I don't see where scope should go. <bean id="socialAuthenticationFilter" class="org.springframework.social.security.SocialAuthenticationFilter" c:_0-ref="authenticationManager" c:_1-ref="userIdSource" c:_2-ref="usersConnectionRepository" c:_3-ref="connectionFactoryLocator" p:signupUrl="

fabicon.ico Or unwanted strings like “6_S3” get appended after the callback url for facebook.twitter login

断了今生、忘了曾经 提交于 2019-12-06 14:15:37
问题 I have integrated spring social with my application for login with Facebook and Twitter . Sometime it is working fine and some time it is appending fabicon.ico or some unwanted string like 6_S3 . Can anyone suggest what I am doing wrong? Consider my callback url registered with my app in Facebook/Twitter is myapp.com/ and in case of appending the fabicon / 6_S3 it is returning myapp.com/fabicon.ico or myapp.com/6_s3 My web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.4"

Spring Facebook Template map fetchObject to PagedList

不想你离开。 提交于 2019-12-06 11:32:33
I'm using the following approach to return a Facebook user's music preferences: //FIXME: Fetch results in a single operation val likes = facebook.likeOperations().music val artists = ArrayList<Artist>() for (musicLiked in likes) { val musicProfile = facebook.fetchObject(musicLiked.id, Page::class.java, "id", "name", "genre"); artists.add(Artist(name = musicProfile.name, genre = musicProfile.genre)) } The above approach won't scale, since we have an additional network operation for each artist the user likes. I tried: I tried using facebook.likeOperations.music however this doesn't fetch genre.

How to Access third Party API (Like as: Facebook, Linkedin, Twitter) using Spring ROO

回眸只為那壹抹淺笑 提交于 2019-12-06 10:04:10
I am trying to Access third party API like as: Facebook, Linkedin, Twitter using Spring ROO. Is it possible to do using Spring ROO? If it is possible, Please help me, how can i do this. Thanks Muni If you are specifically targeting social networks integration, you can easily integrate Spring Social to your Spring Roo project. If you are looking more into third party API Integration, you can use Spring Integration within your Spring Roo project. Add the Spring Social or Spring Integration as a dependency to your projects pom.xml and you are ready to go. Cheers!!! 来源: https://stackoverflow.com

Fetching data from facebook by Spring social

若如初见. 提交于 2019-12-06 05:33:20
i am using Spring social for fetching the data from facebook but encountering a weird error org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'homeController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.social.facebook.api.Facebook org.springframework.social.quickstart.HomeController.facebook; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.springframework

Implementing a Remember me for Spring-Social

那年仲夏 提交于 2019-12-06 04:14:31
问题 I have a spring security enabled project. I have implemented a remember me using the login form which works fine. But I also have on the login form social logins from google/ facebook which work fine. The problem is that they do not remember the user. Is there a way to set a similar "remember me" functionality? My current spring config for the normal login page: <http access-denied-page="/login?authorization_error=true" disable-url-rewriting="true" authentication-manager-ref=

Spring social NoSuchMethodError SocialAuthenticationFilter.getFilterProcessesUrl()

ぃ、小莉子 提交于 2019-12-06 01:48:26
I use spring security login. Now I'm trying to add spring social facebook login, but I get many error information. First, when I try to use the same method like spring social guide , I can't @Autowired private Facebook facebook I found a solution @Bean @Scope(value = "request", proxyMode = ScopedProxyMode.INTERFACES) public Facebook facebook(ConnectionRepository repository) { Connection<Facebook> connection = repository .findPrimaryConnection(Facebook.class); return connection != null ? connection.getApi() : null; } Next, I get the error "cannot find bean". I have to add: @Bean public

@WithUserDetails does not seem to work

被刻印的时光 ゝ 提交于 2019-12-05 21:29:22
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 Not Found if the identifier of the entity it should return is not available. If the user is not logged in then any page redirects to the social login page of my app. I have read here that the @WithUserDetails annotation would suit me the best. So my test method looks like this @Test @SqlGroup({ @Sql(executionPhase = ExecutionPhase.BEFORE_TEST_METHOD

Spring social Authorisation Exception with Facebook

谁说胖子不能爱 提交于 2019-12-05 13:46:33
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 Authorization is required for the operation, but the API binding was created without authorization. description The server encountered an internal error that prevented it from fulfilling this request. exception org.springframework.social.MissingAuthorizationException: Authorization is required for the operation, but the API binding was created without

Implementing a Remember me for Spring-Social

别等时光非礼了梦想. 提交于 2019-12-04 09:09:45
I have a spring security enabled project. I have implemented a remember me using the login form which works fine. But I also have on the login form social logins from google/ facebook which work fine. The problem is that they do not remember the user. Is there a way to set a similar "remember me" functionality? My current spring config for the normal login page: <http access-denied-page="/login?authorization_error=true" disable-url-rewriting="true" authentication-manager-ref="formAuthenticationManager" xmlns="http://www.springframework.org/schema/security"> <intercept-url pattern="/account/**"