在UrabanCode Deploy中传递HttpWebRequest中的凭证

时间:2017-05-03 01:40:27

标签: httprequest credentials urbancode

我正在使用HttpwebRequest将所有组件列表从Urban-code Deploy拉到我的应用程序。我在代码(C#)中使用了自己的凭据来访问它。它工作正常。现在,我必须使用我公司的服务帐户才能通过凭证。我尝试使用DefaultCredential和defaultNetworkcredential但得到相同的错误 - 未经授权的访问。任何帮助!!!谢谢你!!!

1 个答案:

答案 0 :(得分:0)

您在UrbanCode论坛上得到了答案:https://developer.ibm.com/answers/questions/372586/authentication-using-service-account-without-admin/?smartspace=urbancode

您只需要系统中的用户帐户具有访问数据的权限。通过REST API访问数据需要与通过UI相同的权限。没有办法绕过它。