Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-53606

Unable to authenticate Confluence REST API calls using the Atlassian Accounts username

XMLWordPrintable

      Summary

      With the introduction of Atlassian Accounts, customer have to log-in using their email address as their username.

      However, there is something in Confluence that prevents the email address to be used to successfully authenticate REST API calls.

      Environment

      Version 1000.85.3

      Steps to Reproduce

      1. use curl to send a REST request to any endpoint in Confluence sending -u myEmail:myPassword:
        • curl -u EMAIL:PASSWORD https://INSTANCE.atlassian.net/wiki/rest/api/content/

      Expected Results

      The request is successfully authenticated and you get the REST response back

      Actual Results

      Confluence rejects the credentials and you get error 401 unauthorized

      Workaround

      Use the username to authenticate the REST requests (you can see it in the user management section of your Confluence instance):

      curl -u USERNAME:PASSWORD https://INSTANCE.atlassian.net/wiki/rest/api/content/

              Unassigned Unassigned
              jevans@atlassian.com Jeremy Evans
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: