1
votes

I try to retrieve some information from our JIRA (cloud) using TScHttpWebRequest component. The RequestUri is set to

"https://takarekinfo.atlassian.net/rest/agile/1.0/issue/KE-7347?fields=customfield_10274".

Filled the component Credentils properties, but it says "Unauthorized". As I understand the JIRA wont accept basic authentication anymore, so I generated a token and tried this:

"https://takarekinfo.atlassian.net/rest/agile/1.0/issue/KE-7347?user=my_email@domain.com:xxxx_my_token_xxx&fields=customfield_10274".

Still no luck. If I log in to the JIRA in the browser both URL working fine. Unfortunatelly I have very little knowledge about this kind of technology, so I would appreciate any help how can I retrieve the desired information form our JIRA.

update: this one is working fine with curl.exe: curl.exe -D- -u my_email@domain.com:xxxx_my_token_xxx -X GET -H "Content-Type: application/json" https://takarekinfo.atlassian.net/rest/agile/1.0/issue/KE-7347?fields=customfield_10274

All I need to implement this code using SecureBridge or other working solution under XE7. Tried TIdHTTP, not working for me, it says IOHandler not assigned and when I assign a SSL IOHandler says SSL library could not load, probably this is the same problem I ran into, Indy doesnt handle certain SSL protocols.

1
I've rolled back your edit. It is not appropriate to edit a solution into the question itself. If you've found a solution and want to share it, do so by writing an answer in the space provided below for that purpose. See Can I answer my own question? for more information.Ken White
You can use Indy SSL, but need to distribute the OpenSSL libraries to actually make it work: indy.fulgan.com/SSL/ArchiveR. Hoek
@R.Hoek, i know, but this is a different problem, see here: stackoverflow.com/questions/62579768/…tcxbalage
@tcxbalage yes, I know there are issues depending on the Indy version and required ssl version, but that wasn’t clear in the question ;)R. Hoek
@R.Hoek, you right I didnt specify clearly the problem about the Indy, was lazy to type that much, sorry :),tcxbalage

1 Answers

1
votes

Found the solution:

TScHttpWebRequest.HeaderText= 'authorization=Basic FFFFFFFF'

where FFFFFFFF is the base64 encoded 'my_email@domain.com:xxxx_my_token_xxx'