Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Which API will be best for multiple calls

yashraj basan February 3, 2020

I am not understanding.What to use here I don't want to log in every time.

- Basic authentication ( not good for multiple calls)

- Cookie-based authentication (what if the session expired. I don't want to log in again)

- API Token ( is it just for cloud?)

Any idea.  thank in advance

1 answer

1 accepted

1 vote
Answer accepted
DPKJ
Community Champion
February 3, 2020

@yashraj basan  Welcome to the community!

You are mostly correct about everything.

  • Basic authentication
    • Good for testing etc.
    • I have system that makes lots of request to Jira using this without any issue
    • Authentication is pretty fast
  • Cookie Based authentication
    • Not good, session expiry depend on activity etc.
  • API Token
    • This is just like basic authentication and is only available for Jira Cloud offering

You missed one, oAuth ( https://developer.atlassian.com/server/jira/platform/oauth/ )

  • oAuth is really great for your use case,
  • Expiry time of oAuth toke is 5 years (I think this is pretty much enough)
yashraj basan February 3, 2020

Thank you for replying. You are life saver

Suggest an answer

Log in or Sign up to answer