java.lang.IllegalStateException: Authentication necessary

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

Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles 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

Problem


A plugin which needs application links to work properly is failing with the following error:

java.lang.IllegalStateException: Authentication necessary:
http://<BAMBOO_FQDN>/plugins/servlet/applinks/oauth/login-dance/authorize?applicationLinkID=1a20df80-2e5e-30f5-bfbf-008cb8b36d1c&redirectUrl=http%3A%2F%2F<BAMBOO_FQDN>%3A8085%2Fbrowse%2<PROJ-PLAN-JOB-BUILD>)

Cause

The application links are not using impersonation and the OAuth token was not yet allowed.

Workaround

Option 1

  1. Use the URL provided in the error message
  2. Authorize the token by clicking the Allow button.
  3. Try to use the plugin again.

Option 2

  1. Make sure you access any Bamboo feature the needs Application links authentication with the same user affected (try to create a new linked repository e.g., this will bring the token authorization window).
  2. Authorize the token by clicking the Allow button.
  3. Try to use the plugin again.



Last modified on Jan 29, 2025

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.