It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Which authentication use basic or OAuth

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
DPK J Community Leader Nov 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.

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?

DPK J Community Leader Nov 17, 2019

@aasCheck this out - (it has solution of 'signature_method_rejected' issue)

And also look at this documentation ScriptRunner provide Unirest library -

Thanks a lot, DPK J!

Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you