Atlassian] Jira Login Api无法正常工作 [英] Atlassian ] Jira Login Api is not working

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

问题描述

我的Atlassian Jira登录API POST-( https://Domain .atlassian.net/rest/auth/1/session )不起作用.它总是返回未经授权的响应 标头 {"username":"username@xx.com","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":"username@xx.com" ,"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引入了对用于所有Atlassian Cloud网站,以替代以前使用Atlassian帐户的密码或主要凭据的基本身份验证请求以及基于cookie的身份验证.

Atlassian has introduced support for API tokens for all Atlassian Cloud sites as a replacement for basic authentication requests that previously used a password or primary credential for an Atlassian account, as well as cookie-based authentication.

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆