![]() ![]() See Cookie-based authentication, to learn how to call Jira using cookies. However, we recommend you use OAuth or Basic authentication in most cases. You can rely on this to call the REST API from the browser (for example, via JavaScript). Jira uses cookie-based authentication in the browser. See Basic authentication, to work through an example of calling Jira with basic authentication. It may be easier to implement, but it is much less secure. We recommend that you don’t use basic authentication, except for tools like personal scripts or bots. Basic authenticationīasic authentication uses a predefined set of user credentials to authenticate. See OAuth, to learn how to implement a client that uses OAuth. It takes more effort to implement, but it is more flexible and secure compared to the other two authentication methods. We recommend using OAuth when you integrate with Jira. OAuth uses request tokens generated from Jira to authenticate users. Jira Server Developer blog's page on Security Overview explains the different authentication and authorization you can use with Jira Server. Examples of these libraries in different languages and source code can be found in īut if you're using curl, and you're using Jira Server, you can still utilize basic auth or cookie based auth for making REST calls. If you're using OAuth, you can't use curl. The use of OAuth tokens requires that you utilize a programming library in a language such as Java, perl, python, nodejs, etc in order to make these calls. ![]() There are tokens that can be created, but these are OAuth tokens. Jira Server does not have the same kind of API tokens that can be created for Atlassian Cloud products. There are different kinds of tokens to refer to below. Platforms here refers to the difference between Server and Atlassian Cloud products. There are different methods for authenticating to the REST API in regards to Jira, but each platform has some slightly different authentication methods available to them and as such have different use cases. I wanted to add a more comprehensive and clarifying answer here, sorry if it's long-winded: As a result, I think that some people searching google that come across this issue find the answer confusing or misleading for their own use cases. Moses' reply does provide ways to use OAuth to authenticate via REST, but this method does not utilize curl (and I can't find a way to use curl with OAuth). Saranya is asking about how to use a different authentication method other than Basic with curl. Having reviewed this question, it appears that the question asked and the answer given don't exactly match up here. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |