Configure Application link not available
Asked by Piyush_Annadate:

We've Jira (8.20) and Bitbucket (7.17) (both DC Edition). Application links are working and connectivity is well. Application link via OAuth (Im) at both end.

Issues:

\* While viewing Development tools in the JIra project - get below error:

**Authentication Warning**

Applications flagged with can get access to more features if two-legged authentication (2LO) is enabled on their application links. Follow these [instructions for enabling 2LO](https://confluence.atlassian.com/display/JIRAKB/JIRA+Application+Development+panel+displays+error+-+Couldn%27t+read+data).

\* Configure option in the Application Link isn't available hence can't make any changes to the Outgoing/Incoming Authentication.


Answers:
author: Fabian Lim
body: Hi [@Piyush_Annadate](/t5/user/viewprofilepage/user-id/557158)

The link works for me, but here is the content:

OAuth security for application links {#toc-hId--1207594953}
-----------------------------------------------------------

When you connect Atlassian applications using application links you get the security of the industry-standard [OAuth](http://oauth.net/) authorization protocol. For a great introduction to how the OAuth authorization flow works, see [this blog post](http://blog.varonis.com/introduction-to-oauth/).

To update an application link to use just OAuth, see [Update application links to use OAuth](https://confluence.atlassian.com/applinks/update-application-links-to-use-oauth-831660096.html).

If you want to create an application link between two Atlassian applications, see [Link Atlassian applications to work together](https://confluence.atlassian.com/applinks/link-atlassian-applications-to-work-together-785449117.html).

For version 5.2 and later, application links no longer support the Trusted Applications or Basic Access authentication types.

OAuth security models {#toc-hId-1279917880}
-------------------------------------------

There are two OAuth security models that you can use with Atlassian application links:  

|              |                                                                                                                                                     OAuth authentication                                                                                                                                                      |                                                                                                               OAuth with impersonation                                                                                                               |
|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Description  | * The user is redirected to log in to the remote application, after which tokens generated on their behalf are used to authorize requests made from the local application. * The remote application handling the request uses the access permissions of the account with which the user logged in on that remote application. | * The local application makes requests on behalf of the user who is logged in to the application. * The remote application handling the request uses the access permissions of the account with which the user logged in on the *local* application. |
| Benefits     | * Can be used where the applications have different userbases (so a user can have different accounts on each application). * The user's credentials are never sent between applications, and so can only be compromised with difficulty. * Users see only the information that they have permission to see.                   | * Users don't need to authenticate when they request restricted resources from the remote application. * Users see only the information that they have permission to see.                                                                            |
| Requirements | * A user has to authenticate on the remote application when first requesting restricted resources there (subsequent requests use the same token until the token expires). * The Development panel in the Jira Software issue view only supports OAuth authentication.                                                         | * Both applications must be Atlassian applications. * Both applications must share the same userbase (typically managed with an external directory using LDAP).                                                                                      |

You shouldn't link to a non-Atlassian application using OAuth authentication, unless you trust the other application. Applications connected using application links have the ability to use OAuth to impersonate users and so are a potential security risk for the applications they connect to. If your server is compromised, the data there and on linked servers is at risk.

### OAuth authentication {#toc-hId-1970479354}

OAuth authentication redirects a user to log in to the remote application, after which tokens generated on their behalf are used to authorize requests made from the local application. The remote application handling the request uses the access permissions of the account with which the user logged in on that remote application.

Typical scenarios include:

* You are setting up an application link between two applications that do not share the same set of users.
* You want to continue using a link to an application that now allows public sign-on and the link was previously configured with a shared userbase. You can update your application link by changing **OAuth (impersonation)** to **OAuth** when editing the application link.

See [Update an existing link](https://confluence.atlassian.com/applinks/oauth-security-for-application-links-774045732.html#OAuthsecurityforapplicationlinks-update) on this page for instructions.

### OAuth with impersonation {#toc-hId-163024891}

Atlassian OAuth with impersonation makes it easy for your users to benefit from the deep integrations between Atlasssian applications:

* they're automatically authenticated on the other application and don't get asked to authorize requests.
* they'll only see the information that they have permission to see.

Impersonating authentication makes requests on behalf of the user who is currently logged in.

Note that Atlassian OAuth with impersonation can only be used for application links between Atlassian applications. Furthermore, it should only be used when the two applications share the same userbase, typically managed with an external directory using LDAP.

A typical scenario is:

* You've set up an application link but your users still have to authenticate regularly. This can occur when the application link has been configured to not share the same userbase. If those applications do share the same userbase, you can update your application link by selecting **OAuth (impersonation)**when editing the application link.

See [Update an existing link](https://confluence.atlassian.com/applinks/oauth-security-for-application-links-774045732.html#OAuthsecurityforapplicationlinks-update) on this page for instructions.

Update an existing link to use OAuth {#toc-hId-152521787}
---------------------------------------------------------

You may need to update an existing application link to use OAuth authentication when:

* you upgrade an Atlassian application to a version that uses version 5.2, or later, of application links. See the [Application links version matrix](https://confluence.atlassian.com/applinks/application-links-version-matrix-779174762.html).
* the existing link uses Trusted Applications authentication, but your team can't see summary information from a developer tool such as Bitbucket Server in the Development panel in Jira Software issues.
* an existing application link uses OAuth, but your team can't see the details dialogs for the Development panel in Jira Software issues.
* you use a plugin that requires the OAuth authentication type.

Here's how to do that in Jira Software, but the process is much the same for other Atlassian server products:

### Begin in the local application {#toc-hId-843083261}

Go to the 'Configure Application Links' page in the admin area of the local application.

You may see a DEPRECATED lozenge beside links that need to be updated.

Click the pencil icon on the right to edit the configuration for the link you are updating.

In the 'Edit' dialog, set the local authentication for the link under 'Connections':

![](https://confluence.atlassian.com/applinks/files/831660077/949249366/3/1524198392480/Image+one.png)

Choose either:

* **OAuth** where both applications have different userbases.
* **OAuth (impersonation)** if both applications share the same userbase, typically managed with an external directory using LDAP.

Make sure that that the authentication matches for the local and remote ends of both the incoming and outgoing directions.

Click **Save changes**.

### Now, in the remote application {#toc-hId--964371202}

Go to the 'Configure Application Links' page in the admin area of the remote application. Choose the instructions column here that matches the UI you see (they both achieve the same result):  
Click the pencil icon on the right to edit the configuration for the link you are updating.

In the 'Edit' dialog, set the local authentication for the link under 'Connections':

![](https://confluence.atlassian.com/applinks/files/831660077/949249366/3/1524198392480/Image+one.png)

Choose either:

* **OAuth** where both applications have different userbases.
* **OAuth (impersonation)** if both applications share the same userbase, typically managed with an external directory using LDAP.

Make sure that that the authentication matches for the local and remote ends of both the incoming and outgoing directions.

Click **Save changes**.

Click **Edit** for the application link you are updating.

In the 'Configure' dialog, click **Outgoing Authentication** and then the **OAuth** tab:

![](https://confluence.atlassian.com/applinks/files/831660075/831660091/1/1467857228987/outgoing_2LO.png)

Now, select **Enable 2-Legged OAuth** ,assuming that the applications have different userbases.

Optionally, select **Enable 2-Legged OAuth with impersonation** ,if both applications share the same userbase, typically managed with an external directory using LDAP.

Click **Update**.

Now, click **Incoming Authentication** and then the **OAuth** tab:

![](https://confluence.atlassian.com/applinks/files/831660075/831660092/1/1467857248259/incoming_2LO.png)  

Now, select **Enable 2-Legged OAuth** ,assuming that the applications have different userbases.

Optionally, select **Enable 2-Legged OAuth with impersonation** ,if both applications share the same userbase.

Click **Update**.

Note that:

* Users who can see summarized data in the Jira Software Development panel may not have permission to see all the information that contributed to those summaries and that is visible in the details dialogs (for example, for branches, commits and pull requests). That is, the details dialogs respect the access permissions that users have in the connected applications.

* Your team members must have the 'View Development Tools' permission in Jira Software to see the Development panel for an issue.

* Application links between Jira Software and Atlassian developer tools (Bitbucket Server, Bamboo, Crucible, Fisheye) must have Trusted Applications and Basic Access authentication disabled.

* If you run an application on port 443, you must use a valid SSL certificate (which is not self-signed) to get the full functionality available.

comments: author: Piyush_Annadate
body: Hi,

Anyhow issue is solved due to another bug case. But in the answer "Click **Edit** for the application link you are updating." this doesn't available anymore.


Tags: bitbucket-server

confluence-server

jira

server