Results 1 to 3 of 3

Thread: ConnectionController Callback Secure URL

  1. #1

    Question ConnectionController Callback Secure URL

    If my understanding is correct, the default callback url of the ConntectionController is the home URL of hosting site which is not a secure URL. If it is correct, I am wondering why I need to set a secure callback URL if I need a customized one (http://static.springsource.org/sprin...s/1.0.x/api/)?
    [URL="http://vicina.info"] 新闻,社区新闻,分类广告

  2. #2
    Join Date
    Aug 2004
    Posts
    1,067

    Default

    First, the default is not the home URL of the hosting site. It is based on the URL of the current request when starting the connection flow. For example, in a typical Facebook connection flow, the path will be /connect/facebook, so the callback URL will also have the same path. If your app is at https://somesite.com/someapp, then the callback URL will be https://somesite.com/someapp/connect/facebook.

    Whether the default URL is secure or not depends on whether the request that initiated the flow was secure. If you went to /connect/facebook over https, then the default callback URL will also be over https. Otherwise, it will not be.

    Technically speaking, it's not mandatory that the callback URL be secure, although it probably should be. When you set a custom callback URL, you have the option of https or simply http. ConnectController doesn't enforce https; otherwise you'd have to go through extra effort to setup HTTPS to be able to use Spring Social apps when running on localhost.
    Craig Walls
    Spring Social Project Lead

  3. #3

    Default

    Thanks Craig. I get it.
    [URL="http://vicina.info"] 新闻,社区新闻,分类广告

Posting Permissions

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