Live Connect Authentication Token for use on Azure Mobile Services (REST)(用于 Azure 移动服务 (REST) 的 Live Connect 身份验证令牌)
问题描述
我有一个简单的 Windows 窗体应用程序来试用 Live Connect 和 Azure 移动服务.不是 Windows 8 现代应用程序.
I have a simple Windows Forms Application to try Live Connect and Azure Mobile Services. Not a Windows 8 Modern App.
我正在尝试为 Live Connect 使用一些示例代码,并且能够让登录部分正常工作.最后我在登录后得到一个access_token.
I'm trying to make use of some sample code for Live Connect and have been able to get the sign-in part to work fine. In the end I get an access_token after signing in.
在同一 Windows 窗体应用程序的移动服务端,我正在尝试使用 REST 登录.但是,我似乎收到401 Unauthorized"响应,因为身份验证令牌的签名格式错误或由不同的密钥签名"
On the Mobile Services side in the same Windows Forms Application, I'm trying to use REST to login. However, I seeem to get an "401 Unauthorized" response because "The authentication token's signature was malformed or signed by a different key"
JWT 似乎有两个 '.'在令牌中.SWT 似乎有 '/'、'+' 和 '='
JWT seem to have two '.' in the token. SWT seem to have '/', '+' and '='
我需要进行转换吗?
有没有办法配置 Live Connect,以便返回的身份验证令牌是 JWT(或任何移动服务期望的)?
Is there a way to configure Live Connect so that the authentication token returned is JWT (or whatever Mobile Services expects)?
我已经检查了 Live Connect 和 Mobile Services 上的客户端密码,它们是正确的.
I've check the client secret on both Live Connect and Mobile Services, and they are correct.
推荐答案
正如@carlosfigueira 所指出的,在 Live Connect 开发者中心,您的应用需要在重定向域字段中有一些东西.它可以是一个虚拟 URI.
As pointed out by @carlosfigueira, in the Live Connect Developer Center, your app needs to have something in the redirect domain field. It can be a dummy URI.
此处的答案得到证实:http://social.msdn.microsoft.com/Forums/en-US/messengerconnect/thread/4a110db0-6468-44fb-9152-771987ded050
这篇关于用于 Azure 移动服务 (REST) 的 Live Connect 身份验证令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:用于 Azure 移动服务 (REST) 的 Live Connect 身份验证令


- 良好实践:如何重用 .csproj 和 .sln 文件来为 CI 创建 2022-01-01
- 在哪里可以找到使用中的C#/XML文档注释的好例子? 2022-01-01
- 如何用自己压缩一个 IEnumerable 2022-01-01
- 输入按键事件处理程序 2022-01-01
- 带有服务/守护程序应用程序的 Microsoft Graph CSharp SDK 和 OneDrive for Business - 配额方面返回 null 2022-01-01
- WebMatrix WebSecurity PasswordSalt 2022-01-01
- C# 中多线程网络服务器的模式 2022-01-01
- C#MongoDB使用Builders查找派生对象 2022-09-04
- Web Api 中的 Swagger .netcore 3.1,使用 swagger UI 设置日期时间格式 2022-01-01
- MoreLinq maxBy vs LINQ max + where 2022-01-01