Live Connect Authentication Token for use on Azure Mobile Services (REST)

自作多情 提交于 2019-12-01 10:58:41

问题


I have a simple Windows Forms Application to try Live Connect and Azure Mobile Services. Not a Windows 8 Modern App.

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.

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 seem to have two '.' in the token. SWT seem to have '/', '+' and '='

Is there a conversion that I need to do?

Is there a way to configure Live Connect so that the authentication token returned is JWT (or whatever Mobile Services expects)?

I've check the client secret on both Live Connect and Mobile Services, and they are correct.


回答1:


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.

Corroberated by an answer here: http://social.msdn.microsoft.com/Forums/en-US/messengerconnect/thread/4a110db0-6468-44fb-9152-771987ded050



来源:https://stackoverflow.com/questions/14994696/live-connect-authentication-token-for-use-on-azure-mobile-services-rest

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!