敏捷JIRA身份验证失败

问题描述 投票:0回答:1

我正在尝试获取我的敏捷jira服务器的令牌,但得到

“401未经授权”

对于以下网址,我正在使用它来完成它。

https://agile-jira.mycompany.com/jira/rest/auth/1/session

我使用授权作为基本身份验证在标题中我将content-type设置为application / json

使用POSTMAN作为我的工具发送REST调用

authentication jira-rest-api http-status-code-401 jira-agile
1个回答
0
投票

您应该提供编码的base64用户和密码以及基本身份验证。

对于Authorization,请提供Basic base64(user:password)参数。

base64是一个函数,它取决于你如何运行这些命令。

如果它来自Linux curl,这种方法可能会起作用:"Authorization: Basic $(echo -n user:pass | base64)"

参考文献:

https://developer.atlassian.com/server/jira/platform/basic-authentication/

https://osric.com/chris/accidental-developer/2018/07/curl-basic-auth-base64-encoded-credentials/

© www.soinside.com 2019 - 2024. All rights reserved.