I read through several guides, however nothing seems to work.
I'd like to simply update my jira tickets status through a github hook.
The REST examples won't work as the server responds with
`Basic auth with password is not allowed on this instance`
I tried different ways, created an API token for my user. Nothing works. Tried even setting it as `Authorization: Bearer XXXXX`, didn't work either.
How do I get the correct token and how do I use it with `curl`
To Answer my own question after figuring it out.
Get an API token
https://id.atlassian.com/manage-profile/profile-and-visibility
Create a Base64 encoded token from your email and api token
echo -n EMAIL:API_TOKEN | base64
use it in "Authorization: Basic TOKEN" header
curl -D- \
-X GET \
-H "Authorization: Basic TOKEN" \
-H "Content-Type: application/json" \
"https://DOMAIN.atlassian.net/rest/api/2/issue/ISSUE"
This is the correct answer. I used this to connect on power bi. I used online tool to get the base64 token and used header you have mentioned.
Kudos to you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use email and token. You can get your token on https://id.atlassian.com/manage-profile/profile-and-visibility
Username should be mail and password should be token
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's Basic Auth and unfortunately not working with the message above.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.