使用 Postman 通过 OAuth 身份验证获取 Jira 问题 [英] Getting a Jira Issue via OAuth Authentication using Postman

查看:46
本文介绍了使用 Postman 通过 OAuth 身份验证获取 Jira 问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 POSTMAN 在 Jira 中解决问题.我选择了类型作为 OAuth 1.0.为此,它问我下面提到的一些领域.我已经生成了我传递给它的令牌和令牌秘密.我还在应用程序链接中将我的通用应用程序配置为 Jira.我不知道在消费者秘密和签名方法中要传递什么(签名方法应该是什么).我目前正在选择 HMAC-SHA1.对于其余字段,它根据上面传递的参数生成值.

I am trying to GET an issue in Jira using POSTMAN. I have selected Type as OAuth 1.0. For that it is asking me some fields mentioned below. I have generated Token and Token Secret which I am passing to it. I have also configured my generic application to Jira in Application links. I am not aware of what to be passed in Consumer Secret and Signature Method (what should be the signature method). I am currently selecting HMAC-SHA1. For rest of the fields it is generating values based on the parameters passed above.

Consumer Key : hardcoded-consumer
Consumer Secret : ?? (What should I pass here)
Token : ojn33TZALMlvp5eCa6HeErDSx9K8LL6A
Token Secret : inHfn2QFJkkYkWQ8FxT9mXkdcoNxYPf5
Signature Method : HMAC-SHA1
Timestamp : 1474290363 (Generated value)
Nonce : x1hs2v (Generated value)
Version : 1.0 (Generated value)
Realm : (It is optional)

点击我的 jira Url 后,它给了我 oauth_problem=token_rejected 错误.谁能告诉我我在哪里犯了错误?

After hitting my jira Url it is giving me oauth_problem=token_rejected error. Can anyone tell me where I am making the mistake?

这是我点击的 Jira URL:

Here is the Jira URL which I am hitting :

http://bmh1060149:8080/rest/api/2/issue/NWFM-1 (NWFM-1 is the Jira issue)

请查看以下屏幕截图以获取更多参考.

Please find the below screen shot for more reference.

推荐答案

经过一点研究,我找到了答案.获得访问令牌后,我们可以直接将其传递给您的 Jira Url.无需传递所有这些参数.

After little bit of research I found the answer. Once we get the access token we can directly pass that to your Jira Url. There is no need to pass all those parameters.

要获取所有问题类型,我们可以使用以下 URL 并将访问令牌作为参数传递.

To get all issue types we can use the following URL and passing access token as an argument.

http://bmh1060149:8080/rest/api/2/issuetype?access_token=euyyIxB6q5waBHeZ9zB7kGV21GRNNOud

请参阅随附的屏幕截图以获取更多参考.

Please see the attached screen shot for more reference.

这篇关于使用 Postman 通过 OAuth 身份验证获取 Jira 问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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