通知中心无法使用WNS验证凭据 [英] Notification Hub Failed to validate credentials with WNS

查看:134
本文介绍了通知中心无法使用WNS验证凭据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在尝试在Xamarin UWP应用程序中使用Azure推送通知支持。我们在Notification Hub WNS页面中添加产品SID和密钥后发生以下错误。 

主页  - >通知中心 - > {名称} - Windows(WNS)

{'错误':{'消息':'SubCode = 40000。无法使用WNS验证凭据。远程服务器返回错误:(400)错误请求... TrackingId:aa79d90b-f09c-4549-8a06-2086f29f02f5_M11CH3_M11CH3_G12,TimeStamp:6/4/2019 12:15:26 PM','code':'BadRequest'} }

解决方案

请确保应用程序正确关联,因为这个
关于类似问题。请告诉我们上述内容如何进一步提供帮助。


We are trying to use Azure Push Notification support in Xamarin UWP app. While we add Product SID and Secret key in Notification Hub WNS page following error occur.

Home ->Notification Hubs->{Name} - Windows (WNS)

{'error':{'message':'SubCode=40000. Failed to validate credentials with WNS. The remote server returned an error: (400) Bad Request...TrackingId:aa79d90b-f09c-4549-8a06-2086f29f02f5_M11CH3_M11CH3_G12,TimeStamp:6/4/2019 12:15:26 PM','code':'BadRequest'}}

解决方案

Kindly ensure that the app is associated correctly as per this document and the Application Secret password and the Package security identifier (SID) are appropriately set.

Just as a test, I was able to repro with an incorrect configuration.

Note the application secret and package SID are important security credentials. Do not share these values with anyone or distribute them with your app.

Just to isolate the issue further, you may try to clear cache files and re-login to the Azure Portal and then re-try (register again) the steps. Capture browser F12 trace to fetch more details on the error.

Also, just take a look at the discussion thread on a similar issue. Let us know how the above goes for further assistance.


这篇关于通知中心无法使用WNS验证凭据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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