本文介绍了Atlassian] Jira Login Api无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Atlassian Jira登录API POST-( https://Domain .atlassian.net/rest/auth/1/session )不起作用.它总是返回未经授权的响应 标头{"username":"[email protected]","password":"xxxxx"}

My Atlassian Jira Login API POST -(https://Domain .atlassian.net/rest/auth/1/session) is not working .It is always returning UnAuthorized Response Header{"username":"[email protected]" ,"password":"xxxxx"}

推荐答案

首先,端点/rest/auth/1/session已于去年年底从Jira Cloud中删除.请参阅此 Atlassian的公告从去年开始.

First, the endpoint /rest/auth/1/session has been removed from Jira Cloud with the end of last year. See this announcement by Atlassian from last year.

第二,如果要使用基本身份验证对Jira Cloud的请求进行身份验证,则需要为用户使用API​​令牌.上面链接的公告的第一句话也对此进行了解释.

Second, if you want to authenticate requests to Jira Cloud using Basic Authentication, you need to use an API token for your user. This is also explained in the first sentence of the linked announcement above.

这篇关于Atlassian] Jira Login Api无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 20:54