实时连接认证状态总是"未知QUOT&; [英] Live Connect authentication status always "Unknown"

查看:182
本文介绍了实时连接认证状态总是"未知QUOT&;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过SDK活在我的WP8应用程序进行身份验证时面临的一些问题。

I'm facing some problem when authenticating in my WP8 app via Live SDK.

我添加了一个 SignInButton 来我的应用程序:

I have added a SignInButton to my app:

<live:SignInButton x:Name="btnSignIn" 
    Scopes="wl.skydrive wl.skydrive_update wl.signin wl.offline_access"
    ClientId="MY_CLIENT_ID" 
    SessionChanged="btnSignIn_SessionChanged" 
    TextType="Login" />

在code-后面我有以下几点:

In the code-behind I have the following:

private async void btnSignIn_SessionChanged(object sender, Microsoft.Live.Controls.LiveConnectSessionChangedEventArgs e)
{
    App.LiveSession = e.Session;
    if (e.Status == Microsoft.Live.LiveConnectSessionStatus.Connected)
    {
        App.LiveClient = new Microsoft.Live.LiveConnectClient(e.Session);                               
    }
}

当我点击以及登录按钮,我在这里展示我输入凭据屏幕,并且应用程序授予权限。一切都很正常,直到那里。

When I tap the SignIn button, I show the screen where I enter my credentials, and give permissions to the app. Everything fine until there.

问题是,在这之后, btnSignIn_SessionChanged 被激发,因为expectyed,但我总是未知 e.Stautus 属性。

The problem is that after that, btnSignIn_SessionChanged is fired, as expectyed, but I always get Unknown in e.Stautus property.

如果我再次点击签到按钮,我不是要求您输入凭据,但肯定的许可。接受邀请后, e.Status 保持返回未知,应连接时

If I tap the SignIn button again, I'm not asked for credentials, but yes for permission. After accepting, e.Status keeps returning Unknown, when it should be Connected.

http://dev.live.com 我有我的应用程序配置为移动客户端。该应用程序使用在过去的工作,我无法猜出可能是这个问题。

In http://dev.live.com I have my app configured as mobile client. The app used to work in the past, and I'm not able to guess where can be the problem.

任何线索?

推荐答案

如果您使用的是代理服务器,也会出现此问题。使用Automaticaly检测设置,在局域网设置修复了这个问题对我来说。

This problem can also occur if you are using a proxy server. Using "Automaticaly detect settings" in LAN settings fixed this issue for me.

这篇关于实时连接认证状态总是&QUOT;未知QUOT&;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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