2016-06-29 11 views
0

auth0を使用するログインページを使用してアプリケーションを構築しようとしていますが、LoginAsyncを呼び出すとログインページが別のフレームにポップアップ表示されます。 xamlで定義されているwebview。私はこの中で定義されたのWebViewで、この中にポップアップ[enter image description here] picture [1]が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ですか?

答えて

0

この種のプロジェクトでは、the Auth0 quickstartを見て始めます。私はあなたがそこに途中にいると思うし、クイックスタートはあなたの残りの部分を得るだろう。

不足していることがある場合や、さらに支援が必要な場合は、気軽にお気軽にお問い合わせください。

--Kassandraパーチ、デベロッパーエバンジェリスト

+0

ナゲットパッケージ "Auth0WinformsOrWPF" は "空白のApp(ウィンドウ8.1)" をインストールすることはできません。また、このタイプのプロジェクトでは、 "WindowWrapper"名前空間が見つかりません。 – iamsharp

関連する問題