简体   繁体   English

C#Windows Phone 8.1 Twitter身份验证页未更改

[英]C# Windows Phone 8.1 Twitter Authentication Page Not Changing

I have the following c# code for windows phone 8.1 to authenticate user login via twitter. 我具有Windows Phone 8.1的以下c#代码,以通过Twitter验证用户登录。

openTwitterPage is the Button event when user clicks login on the home page. openTwitterPage是用户单击主页上的登录名时的Button事件。

After the user enter his login credentials on twitter page and clicks sign in, my homepage is shown again and the Frame.Navigate code is never executed. 用户在推特页面上输入登录凭据并单击登录后,将再次显示我的主页,并且永远不会执行Frame.Navigate代码。

    private async void openTwitterPage(object sender, RoutedEventArgs e)
    {
        await Authenticate();
        this.Frame.Navigate(typeof(MainMenu));
    }

    private async System.Threading.Tasks.Task Authenticate()
    {
        user = await  App.MobileService.LoginAsync(MobileServiceAuthenticationProvider.Twitter);
    }

I had troubles using MobileServiceAuthenticationProvider too so I wrote my own library to authenticate users with Twitter client-side on Windows Phone 8.1. 我在使用MobileServiceAuthenticationProvider时也遇到了麻烦,因此我编写了自己的库来在Windows Phone 8.1上使用Twitter客户端对用户进行身份验证。 Take a look - https://github.com/konradbartecki/TwitterAutherino 看看-https://github.com/konradbartecki/TwitterAutherino

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM