Which authentication use basic or OAuth

aas November 17, 2019

Hello everybody. I try to integrate 2 instances of Jira via REST API and scriptrunner (create issues and make transitions) and a question is which authentication use basic or OAuth? I use HTTPBuilder to make requests and can't understand how to use OAuth in scriptrunner or may be basic is enough?

1 answer

1 accepted

0 votes
Answer accepted
DPKJ
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 17, 2019

@aasfor HTTPBuilder that uses `Signpost` internally I suggest you use, BASIC authentication for simplicity.

The reason I am suggesting this is because you will face issues like `signature_method_rejected`. This can be resolved, but BASIC Auth is simpler, and since your trusted by both Jira there is no harm using it.

aas November 17, 2019

Such complexity arises only with using HTTPBuilder? May be there're some other, mmm I don't know how to say, classes to send requests in groovy? What is most often use in such cases and what is the best practise?

DPKJ
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 17, 2019

@aasCheck this out - https://stackoverflow.com/questions/39529599/groovy-jira-oauth-integration-using-httpbuilder (it has solution of 'signature_method_rejected' issue)

And also look at this documentation ScriptRunner provide Unirest library - https://scriptrunner-docs.connect.adaptavist.com/jiracloud/#_unirest

aas November 17, 2019

Thanks a lot, DPK J!

Suggest an answer

Log in or Sign up to answer