Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Newb Problem - ConnectInterceptor pre/postConnect not being called

  1. #11
    Join Date
    Aug 2004
    Posts
    1,073

    Default

    I see nothing out of sorts here. Sure, the constructor is being invoked, because you explicitly invoke it in the @Bean method for the ConnectController. Assuming that you're actually doing a Facebook connection, I see no apparent reason why the pre/postConnect methods wouldn't be invoked. I even matched up your code against the code in Spring Social Showcase (https://github.com/SpringSource/spri...ocial-showcase) and except for the details of each method, it looks the same.

    A few starter questions: Did you try this with Spring Social Showcase? What versions of Spring Social (core/web/facebook) are you using? Are you certain that a connection is being created? What kind of server are you deploying this to (I ask, because I've seen trouble with interceptors working on Google App Engine)?
    Craig Walls
    Spring Social Project Lead

  2. #12

    Default

    Thanks for the quick reply. Ya, I tried the spring social showcase and it works completely fine there. Then i tried a similar interceptor in my application and it fails to load. Ya the connection is being created and i used Tomact 6.0 for both the applications.

  3. #13
    Join Date
    Aug 2004
    Posts
    1,073

    Default

    Well, this is puzzling. I'm not sure I can make a diagnosis on the info I have. Would you be able to share the social portion of your configuration? Not just the ConnectController, but the entire social configuration.

    I also wonder if there may be some conflicting versions in play. ConnectController picks which interceptors to call based on the API binding interface that ConnectInterceptor is parameterized with. Sure, you've got it parameterized with Facebook, but is it the same Facebook? I've seen this kinda thing happen (not with Spring Social, but in other contexts) where there'd be 2 or more of a dependency in the classpath and one would be used for some things and another used for other things. If that's the case here, it may be looking for Facebook from dependency 1, but the interceptor is for Facebook from dependency 2.

    That may not be the problem, but if it is, it's an easy thing to check for: Just look to see if you have more than one spring-social-facebook dependency in your WEB-INF/lib. If so, then that's gotta be it.
    Craig Walls
    Spring Social Project Lead

  4. #14

    Default

    Maybe the Generics <Facebook> are not right. Actually this was my fault.
    This weekend I will checkin my code at github than you can have a look at it (GitHub -> Atleticus or www.atleticus.net)

  5. #15

    Default

    Thanks for your replies. Actually i was calling ProviderSignInController instead of ConnectController.
    Can i make a popup based login using ProviderSignInController as i cannot add a interceptor to ProviderSignInController.

  6. #16
    Join Date
    Aug 2004
    Posts
    1,073

    Default

    You should be able to do a popup-based login. I've done it for connections (see https://github.com/SpringSource/spri...g-social-popup), so I don't see any reason it wouldn't work for logins with ProviderSignInController.

    As for interceptors and ProviderSignInController, keep an eye on https://jira.springsource.org/browse/SOCIAL-255. That work is definitely on my radar, but I've got a few other big items in line in front of it. It shouldn't be long before I get to that one, though.
    Craig Walls
    Spring Social Project Lead

  7. #17

    Default

    Thanks for the info. Is there any alternative way through which i can pass display : popup parameter to ProviderSignInController ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •