0
auth0を使用するログインページを使用してアプリケーションを構築しようとしていますが、LoginAsyncを呼び出すとログインページが別のフレームにポップアップ表示されます。 xamlで定義されているwebview。私はこの中で定義されたのWebViewで、この中にポップアップ[がXAMLであることをログインページを表示したいwebviewでauth0クライアントloginasyncを表示する方法
:
<Page
x:Class="Auth0App.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Auth0App"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<StackPanel Margin="10,0">
<StackPanel>
<TextBlock Style="{ThemeResource SubheaderTextBlockStyle}">Log in using widget</TextBlock>
<Grid HorizontalAlignment="Center" Margin="0,10">
<Button Content="Login" x:Name="LoginButton" Click="LoginButton_OnClick"/>
</Grid>
</StackPanel>
<StackPanel>
<WebView Name="loginWebView"/>
</StackPanel>
</StackPanel>
</Page>
と後ろのコードは次のとおりです。
using Auth0.SDK;
using System;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
namespace Auth0App
{
public sealed partial class MainPage : Page
{
private Auth0Client auth0Client;
public MainPage()
{
this.InitializeComponent();
auth0Client = new Auth0Client("mydomain", "**************************");
}
private async void LoginButton_OnClick(object sender, RoutedEventArgs e)
{
try
{
var user = await auth0Client.LoginAsync();
}
catch (Exception ex)
{
}
}
}
}
どのように私はauth0を配線しますクライアントは私のwebviewですか?
ナゲットパッケージ "Auth0WinformsOrWPF" は "空白のApp(ウィンドウ8.1)" をインストールすることはできません。また、このタイプのプロジェクトでは、 "WindowWrapper"名前空間が見つかりません。 – iamsharp