1

我有一个通过 Azure 制作的不同教程连接到云的应用程序。但是,我有一个问题,MicrosoftAccount 的登录功能给了我一个令牌,据我所知,它会在论坛上过期。

我知道 Live-id 是可能的,我有一个使用 Live-id 的工作示例。但是与移动服务一起使用时,该解决方案似乎不是很好。

反正有没有做

user = await App.MobileService.LoginAsync(MobileServiceAuthenticationProvider.MicrosoftAccount);

应用程序可以自动登录,这样令牌不会过期吗?

4

1 回答 1

0

是的,这是可能的。您将必须实现 HttpClientHandler 并将令牌存储在 - 例如 - 密码值中。

var client = new MobileServiceClient(
    "https://xxxxxxxx.azure-mobile.net", null, handler);  

您可以在http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2013/12/05/windows-8-1-accounts-settings-authentication-azure-mobile-services找到 Mike Taulty 的详细文章。 aspx

于 2014-09-25T09:02:00.963 回答