繁体   English   中英

使用Azure移动服务进行身份验证

[英]Authentication with Azure Mobile Services

我为Windows 10构建了通用应用程序。在我的应用程序中,我正在使用Azure移动服务进行身份验证(Facebook,Google等)。

// Define a member variable for storing the signed-in user. 
private MobileServiceUser user;

// Define a method that performs the authentication process
// using a Facebook sign-in. 
private async System.Threading.Tasks.Task<bool> AuthenticateAsync()
{
    string message;
    bool success = false;
    try
    {
        // Change 'MobileService' to the name of your MobileServiceClient instance.
        // Sign-in using Facebook authentication.
        user = await App.MobileService
            .LoginAsync(MobileServiceAuthenticationProvider.Facebook);
        message =
            string.Format("You are now signed in - {0}", user.UserId);

        success = true;
    }
    catch (InvalidOperationException)
    {
        message = "You must log in. Login Required";
    }

    var dialog = new MessageDialog(message);
    dialog.Commands.Add(new UICommand("OK"));
    await dialog.ShowAsync();
    return success;
}

我的登录窗口有问题。 在低分辨率下,我得到了这个窗口。

低分辨率的登录窗口(屏幕截图)。

但是在高分辨率下,我得到了这个窗口。

高分辨率的登录窗口(屏幕截图)。

如何缩放此网页以使用不同的分辨率? 也许我可以访问webview?

提前致谢。

据我所知,您无法访问Webview,因为它是操作系统级别,但是仍然可以访问大网页。

暂无
暂无

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

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