I tried everything from Basic auth for REST APIs (atlassian.com) to get my request working:
I created an API-token on the application. Then I crated a string in the form "myuser:mytoken" and encoded it using base64. Finally I used that string as authorization-header within cURL:
curl https://myintance.atlassian.net/rest/api/2/project -H "Authorization: Basic <base64string>"
However it keeps returning an empty array, wile it should get me my JIRA-projects.
I also tried to provide the API-token as bearer-token as described here: Using Personal Access Tokens | Atlassian Support | Atlassian Documentation
curl https://myintance.atlassian.net/rest/api/2/project -H "Authorization: Bearer <base64string>"
but that gave me this:
{"error": "Failed to parse Connect Session Auth Token"}
Okay, now it works... created completely new token. Seems like the previous one was broken ;(
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.