Live Connect Authentication Token for use on Azure

2019-02-20 04:51发布

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条回答
手持菜刀,她持情操
2楼-- · 2019-02-20 05:42

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

查看更多
登录 后发表回答