应用程序资源上的POST请求 - 500 Web票证无效 [英] POST request on the applications resource - 500 The web ticket is invalid

查看:81
本文介绍了应用程序资源上的POST请求 - 500 Web票证无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试使用UCWA为Lync创建自己的客户端。

Hi,
I'm trying to create my own client for Lync using UCWA.

我在步骤#9  https://ucwa.lync.com/documentation/KeyTasks-CreateApplication

I am in step #9 https://ucwa.lync.com/documentation/KeyTasks-CreateApplication

我的请求看起来喜欢

POST: 



POST: 

但是我从服务器接收代码500,这在标题中

But I'm receiving code 500 from server and this in headers

'x-ms-diagnostics':'28032; source =" mysource" ;; reason ="网络票证无效。",

'x-ms-diagnostics': '28032;source="mysource";reason="The web ticket is invalid."',

任何线索为什么?

推荐答案

在步骤#8中,检查返回请求中的Json是否与当前域匹配,如下所示:

In step #8, check to see if Json in the returned request matches the current domain as follows:

GET https://lync01.domain.com/Autodiscover/AutodiscoverService.svc/root/oauth/user?originalDomain=microsoft.com HTTP/1.1

{
  "_links": {
    "self": {
      "href": "https://lync31.domain.com/Autodiscover/AutodiscoverService.svc/root/user"
    },
    "applications": {
      "href": "https://lync31.domain.com/ucwa/oauth/v1/applications"
    },
    "xframe": {
      "href": "https://lync31.domain.com/Autodiscover/XFrame/XFrame.html"
    }
  }
}



在上面的示例中,请求的域名为 lync01.domain.com
和响应Json包含指向 lync31.domain.co m 的域名。  OAuth令牌特定于域,因此lync01令牌不会对lync31起作用。


In the above example the request has a domain of lync01.domain.com and the response Json contains domains pointing to lync31.domain.com.  The OAuth token is specific to a domain so a lync01 token will not work against lync31.

在步骤#8的尾端,它还描述了这种情况:

At the tail end of Step #8 it also describes this situation:

如果用户驻留在不同的池上,就像在分割域方案中一样,相应请求中的目标用户资源(步骤7)将自动重定向到重定向本垒打服务器。在这种情况下,将在此处返回500响应
。发生这种情况时,请重复质询 - 响应流程(从步骤3开始)以再次对用户进行身份验证并获取新的OAuth令牌。


这篇关于应用程序资源上的POST请求 - 500 Web票证无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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