Jira使用REST登录



我想使用Jira的REST API与之合作,但在此之前,我想使用REST API进行登录。到目前为止,我可以发现登录可以用用户名和api密钥令牌完成。但我不想从门户创建API令牌。因此,如果我们可以从API本身创建API令牌,或者可以通过某种方式登录,请寻求建议。

根据Atlassian的官方文档,有多种方式可以通过JIRA进行身份验证。您希望使用的方式是使用基于cookie的身份验证。

This is how cookie-based authentication works in Jira at a high level:
- The client creates a new session for the user via the Jira REST API.
- Jira returns a session object that has information about the session including the session cookie. The client stores this session object.
- The client can now set the cookie in the header for all subsequent requests to the Jira REST API. 

最新更新