访问JIRA API与API密钥没有用户名和密码 [英] Access JIRA API with api key without username and password

查看:518
本文介绍了访问JIRA API与API密钥没有用户名和密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在用户名和密码C#.NET应用程序目前我访问JIRA API。但我需要,而无需输入用户名和密码,即使没有散列的用户名和密码访问JIRA API。有什么方法来创建与API密钥和访问JIRA API?

Currently I'm accessing JIRA API in C#.Net application with username and password. But I need to access the JIRA API without entering a username and a password even without hashed username and passwords. Is there any way to create an API key and access JIRA API with that?

推荐答案

是的,JIRA支持的OAuth为此目的,请参阅:的https://developer.atlassian.com/display/JIRADEV/JIRA+REST+API+Example+-+OAuth+authentication

Yes, JIRA supports OAuth for that purpose, see: https://developer.atlassian.com/display/JIRADEV/JIRA+REST+API+Example+-+OAuth+authentication

不幸的是有没有C#示例code提供的,但你应该能够组装从这里其他编程语言的解决方案:
https://bitbucket.org/atlassian_tutorial/atlassian-oauth-examples/src

Unfortunately there's no C# sample code provided, but you should be able to assemble a solution from the other programming languages here: https://bitbucket.org/atlassian_tutorial/atlassian-oauth-examples/src

您应该无论如何使用通用的OAuth库。

You should use a generic OAuth library anyhow.

这篇关于访问JIRA API与API密钥没有用户名和密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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