Atlassian ] Jira 登录 Api 不起作用 [英] Atlassian ] Jira Login Api is not working

查看:53
本文介绍了Atlassian ] Jira 登录 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 引入了对 API-tokens-938839638.html? 适用于所有 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 登录 Api 不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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