Announcement Announcement Module
Collapse
No announcement yet.
Setting the callback URL Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Setting the callback URL

    [This thread picks up the discussion started by Sujeesh at http://blog.springsource.org/2011/03...work/#comments. I am posting my reply here because the forum is more optimal for this kind of discussion.]

    First, in many cases it is unnecessary to actually set the callback URL because ConnectController is able to infer the proper callback URL from the request. I'd try *not* setting the callback URL and see if that fixes the problem.

    Also, setting it to OOB certainly will not work for Facebook because Facebook is an OAuth 2 provider and OOB is an OAuth 1.0a concept. And, truthfully, OOB doesn't make much sense with ConnectController because OOB really is meant to handle cases like desktop apps where a callback is difficult or even impossible. For web apps, callback is certainly possible and so OOB isn't appropriate.

    And setting it to http://localhost:9080/SpringScribeOA...ebook-callback will not work because ConnectController isn't listening at that path. ConnectController listens at /connect/{provider ID}. So, the callback URL should be something like http://localhost:9080/SpringScribeOA...nnect/facebook. But again, ConnectController will probably be able to infer that, so it's not even necessary to explicitly set it.

    May I offer a few suggestions:
    1. Read the reference documentation...specifically chapter 4: http://static.springsource.org/sprin...onnecting.html
    2. Have a look at the sample apps at https://github.com/SpringSource/spring-social-samples. Specifically, the Spring Social Showcase may be of interest to you (note that the showcase has been updated for Spring Social 1.1.0. If you want to see how it looked for Spring Social 1.0.0, you should look at the code in the PRE_1.1.0 tag.)

  • #2
    Hello,

    When i m using spring-social-quickstart project which is provided at https://github.com/SpringSource/spring-social-samples, in that project which callback url is used so that i can map that callback url to my facebook apps. because due to incorrect callback url login is not working. please give some advise for the same.

    Thank you

    Comment


    • #3
      As it is (straight from GitHub), if you were to run the quickstart application on localhost:8080, then your application's Site URL should be configured at Facebook as http://localhost:8080/spring-social-quickstart/. (The trailing slash is required by Facebook.)

      Since the quickstart app only uses ProviderSignInController, then the callback URL will ultimately be http://localhost:8080/spring-social-...ignin/facebook.

      Is that what you need?

      Comment

      Working...
      X