Announcement

Collapse
No announcement yet.

Facebook integration for multi-tennant/domain installation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Facebook integration for multi-tennant/domain installation

    Hi,

    I've got 6.20.0r8 working great on Ubuntu 10.04. I'm testing out the Social integration with some users and they love it. However, I have a problem that I'm sure is not unique to my installation.

    I have a single server hosting multiple domains, and a single OX installation installed on a virtual server aliased so that anyone requesting mail.* from the server will get OX.

    This works perfectly, and has done for many years.

    However, the facebook connector does not account for this. Effectively only one domain can be used with the connector.

    When I configure the app in Facebook I give the "main" URL for the server (although this is no less valid than any other), e.g. mail.myhosting.com.

    When a user accesses their email they can do so using mail.usersdomainname.com and log in with their email address and password. In fact, they would be able to use the webmail address of any domain hosted on the server.

    However, the OX connector (sensibly) rewrites the facebook request URL with a redirect_uri set to the URL the user used to access the server - necessarily different to mail.myhosting.com.

    I only have one OX installation, so can only create one facebook app for this. Facebook does not let you add multiple URLs for the app and OX does not let you add multiple api keys and secrets and associate them with domains.

    Therefore, with this style of installation, the facebook connector is unusable.

  • #2
    Please have a look at http://oxpedia.org/wiki/index.php?ti...#Configuration. There is the possibility to use facebook with more than one domain. You only have to set the http deferrer url and must generate a facebook key for that domain.
    Markus Wagner
    Open-Xchange Quality Assurance

    Comment


    • #3
      I tried that - I still get the OAuthException "Invalid redirect_uri" from Facebook, even though com.openexchange.http.deferrer.url and "Site URL" on the Basic settings page of the facebook app both match (the facebook configuration pages now look completely different to the setup guide provided btw).

      I can see in the URL of the window that opens to do the facebook auth that "redirect_uri" is still the name of the server used by the user and not the name of the server as set in facebook or in com.openexchange.http.deferrer.url.

      Comment


      • #4
        is the "open-xchange-http-deferrer" package installed?
        Markus Wagner
        Open-Xchange Quality Assurance

        Comment


        • #5
          No, but:

          # apt-get install open-xchange-http-deferrer
          Reading package lists... Done
          Building dependency tree
          Reading state information... Done
          E: Couldn't find package open-xchange-http-deferrer


          I have the relevant entries in apt-sources as described in the document mentioned; the entire OX installation was installed using apt.

          There's no mention of open-xchange-http-deferrer anywhere in that document....?

          Comment


          • #6
            You're right, this package is only in the update repository. So you need a valid maintenance license.
            Markus Wagner
            Open-Xchange Quality Assurance

            Comment


            • #7
              Weird! Why make one component of this Community and another not? Especially as it's effectively a beta feature!

              Comment


              • #8
                Hi,

                the reason is, that the deferrer package has been developed after the final release of 6.20 (rev8). Therefor it's only available through the latest updates or through the unsupported "snapshot" repository.

                Greetings

                Comment

                Working...
                X