如何获取用于SOAP身份验证的for-service和for-service-url?

时间:2019-07-25 18:47:17

标签: c# api authentication citrix

我想验证一个SOAP API请求并跟进许多文档,但是没有找到支持以获取下面显示的包含for-servicefor-service-url的请求正文的任何​​支持。 如果找到合适的解决方案或合适的文档,请指导我。 以下是显示我要获取的文档部分的示例。

POST https://www.example.com/Citrix/Authentication/auth/v1/token HTTP/1.1
Content-Type: application/vnd.citrix.requesttoken+xml
Accept: application/vnd.citrix.requesttokenresponse+xml,application/vnd.citrix.requesttokenchoices+xml
Content-Encoding: utf-8
Host: www.example.com
Content-Length: xxx

<?xml version="1.0" encoding="utf-8"?>
<requesttoken xmlns="http://citrix.com/delivery-services/1-0/auth/requesttoken">
  <for-service>6b78ab94-a709-4e3a-8b9b-a49ca317c70c</for-service>
  <for-service-url>https://www.example.com/Citrix/Store/resources/v2</for-service-url>
  <reqtokentemplate />
  <requested-lifetime>1.00:00:00</requested-lifetime>
</requesttoken>

This is an example which you can follow up with.

我也看过this video。 因此,这为我提供了具有/不具有用户凭据的令牌。 出现的问题是,如果已从此方法获取令牌,client_idclient_secret的用途是什么? 我可以使用凭证生成访问令牌吗?如果是的话,怎么办?

0 个答案:

没有答案