API Error when Basic Authentication for API calls is Disabled is too informative

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: REST API
    • None
    • 1

      Issue Summary

      When Basic Authentication for API calls is disabled in Jira and a user tries to make an API call with this authentication method, the server responds with

      {"message":"Basic Authentication has been disabled on this instance."} 

      Steps to Reproduce

      1. In Jira, navigate to Settings > System > Authentication Methods
      2. Disable the feature "Allow basic authentication for API calls"
      3. Fire an API call to Jira using Basic Authentication

      Expected Results

      Jira returns a generic error message so that a user isn't aware of the authentication methods allowed or disallowed on the system.

      Actual Results

      Jira fires a very specific error message

      {"message":"Basic Authentication has been disabled on this instance."} 

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            Assignee:
            Unassigned
            Reporter:
            Patrick Turbett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: