Uploaded image for project: 'Confluence Server and Data Center'
  1. Confluence Server and Data Center
  2. CONFSERVER-45418

Support for uni-directional application links

    XMLWordPrintable

Details

    Description

      Summary

      The new application links plugin only supports OAuth for authentication. Due to this, we cannot create a true uni-directional application link.

      Environment
      • Confluence 5.10
      • Application Links plugin 6.0+
      Steps to Reproduce
      • Create the link from the source instance
      • Under the Connections section, set both Local Authentication values for Outgoing and Incoming to Disabled.
      • In the target instance, edit the link and set incoming authentication to OAuth. The outgoing authentication should be disabled for all authentication types.
      Expected Results

      When creating an application link in one direction, it should display as correctly configured in the application links status page.

      Actual Results

      Although this can be configured, we see a network error in the applink status

      Workaround 1
      • Create the link from the source instance
      • Under the Connections section, both Local Authentication values for Outgoing and Incoming to Disabled.
      • In the target instance, edit the link and set incoming authentication to OAuth. The outgoing authentication should be disabled for all authentication types.

      The application link status will still show a network error, but the application link will work in one direction from the source instance to the target instance.

      Workaround 2

      Shutdown Confluence and backup your database before making any of these changes. We recommend trying out these changes only in a test environment.

      1. Go to Confluence and JIRA and remove all existing applinks
      2. Shutdown Confluence
      3. Backup the confluence_install/confluence/WEB-INF/atlassian-bundled-plugins folder
      4. Follow our guide on how to Remove Bundled or System Plugins to remove the following JAR files from the confluence_install/confluence/WEB-INF/atlassian-bundled-plugins folder
        • applinks-basicauth-plugin-5.2.2.jar
        • applinks-oauth-plugin-5.2.2.jar
        • applinks-trustedapps-plugin-5.2.2.jar
        • applinks-cors-plugin-5.2.2.jar
        • applinks-plugin-5.2.2.jar
      5. Download the following files attached to this ticket:
      6. Clear the plugin cache
      7. Start Confluence
      Notes

      Uni-directional links are useful when one of the applications is in a DMZ or has no internet access. In the case of one of our customers, they are connecting a Confluence instance that does not have internet/external network access to a 2nd Confluence site and using a plugin to publish to the second instance.

      Attachments

        1. nwerror.png
          nwerror.png
          2 kB
        2. responseexcept.png
          responseexcept.png
          9 kB
        3. applinks-basicauth-plugin-5.0.4.jar
          22 kB
        4. applinks-oauth-plugin-5.0.4.jar
          147 kB
        5. applinks-cors-plugin-5.0.4.jar
          23 kB
        6. applinks-trustedapps-plugin-5.0.4.jar
          51 kB
        7. applinks-plugin-5.0.4.jar
          1.22 MB

        Activity

          People

            Unassigned Unassigned
            dponzio Daniel Ponzio
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: