Bamboo fails to remove Application Links with an"OAuth authentication is not configured for Application Link Atlassian Bamboo" message

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

When trying to delete the AppLinks from Bamboo, the following screen/message is shown but hitting confirm doesn't do anything and the AppLinks are kept there:

1 2 3 4 Confirm that you want to delete the Application Link to 'Atlassian Bamboo' (Stash).  The authentication information for OAuth and OAuth will be deleted   Contacting remote application OAuth authentication is not configured for Application Link Atlassian Bamboo (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx) http://stash....
(Auto-migrated image: description temporarily unavailable)

The following appears in the atlassian-bamboo.log:

Environment

All supported versions of Bamboo.

Diagnosis

The following appears in the <bamboo-home>/logs/atlassian-bamboo.log:

1 2 3 2015-10-01 10:05:52,362 ERROR [http-apr-8085-exec-10] [ThrowableExceptionMapper] Uncaught exception thrown by REST service: OAuth Authentication is not configured for application link Atlassian Bamboo (eb9d907c-f8ba-3bf6-8082-8e40aa0a5a5c) http://stash com.atlassian.applinks.application.stash.StashApplicationTypeImpl@6871661b java.lang.IllegalStateException: OAuth Authentication is not configured for application link Atlassian Bamboo (eb9d907c-f8ba-3bf6-8082-8e40aa0a5a5c) http://stash com.atlassian.applinks.application.stash.StashApplicationTypeImpl@6871661b at com.atlassian.applinks.core.auth.oauth.twolo.impersonation.TwoLeggedOAuthWithImpersonationRequestFactoryImpl.createRequest(TwoLeggedOAuthWithImpersonationRequestFactoryImpl.java:54)

Cause

The current AppLinks got corrupted somehow and only a manual intervention will recover them.

Solution

Always back up your data before making any database modifications. If possible, test any alter, insert, update, or delete SQL commands on a staging server first.

REMOVING BAMBOO APPLICATION LINK MANUALLY

  1. Run Exporting Data for Backup

  2. Shutdown your Bamboo instance

  3. Connect to your Bamboo database and execute the following SQL queries:

    1 2 3 4 DELETE FROM trusted_apps_IPS; DELETE FROM trusted_apps_URLS; DELETE FROM trusted_apps; DELETE FROM bandana WHERE BANDANA_key LIKE '%applink%';
  4. Edit the <bamboo-home>/xml-data/configuration/administration.xml file and remove the <currentApplication> tag, if it exists. For example, delete the lines below:

    For Bamboo 8 and later edit the administration.xml under path <bamboo-home>/shared/configuration/administration.xml.

    1 2 3 4 5 <currentApplication> <applicationId>C0A80F180131E4494C2071A449684E94</applicationId> <publicKey>MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAgH2SbSdLy4vKr/A0zeAO$</publicKey> <privateKey>MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCAfZJtJ0vLi8q$</privateKey> </currentApplication>
  5. Restart the Bamboo instance

  6. Go to the other application(s) you want to link to Bamboo with and remove any application links related to Bamboo.

    • If you are unable to do this via the UI of the other application you may need to do this via the DB using instructions for that application.

  7. Try to configure the AppLinks between Bamboo and the other application again using the default options the UI presents you with.

Updated on April 11, 2025

Still need help?

The Atlassian Community is here for you.