-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browser based interactive authentication (#209)
* Added clarification on testing the out of the box experience. Closes #195. * Added support for browser based interactive authentication using an embedded browser. * Improved UX of interactive authentication. * Ensure that the main window is available when showing a modal dialog. * Reorganization.
- Loading branch information
Showing
45 changed files
with
627 additions
and
304 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
src/Tql.App/Services/UIService/BrowserBasedInteractiveAuthenticationException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace Tql.App.Services.UIService; | ||
|
||
internal class BrowserBasedInteractiveAuthenticationException : Exception | ||
{ | ||
public BrowserBasedInteractiveAuthenticationException() { } | ||
|
||
public BrowserBasedInteractiveAuthenticationException(string? message) | ||
: base(message) { } | ||
|
||
public BrowserBasedInteractiveAuthenticationException( | ||
string? message, | ||
Exception? innerException | ||
) | ||
: base(message, innerException) { } | ||
} |
53 changes: 53 additions & 0 deletions
53
src/Tql.App/Services/UIService/BrowserBasedInteractiveAuthenticationWindow.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<utilities:BaseWindow | ||
x:Class="Tql.App.Services.UIService.BrowserBasedInteractiveAuthenticationWindow" | ||
x:ClassModifier="internal" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:app="clr-namespace:Tql.App" | ||
xmlns:utilities="clr-namespace:Tql.Utilities;assembly=Tql.Utilities" | ||
xmlns:wv2="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf" | ||
mc:Ignorable="d" | ||
Title="{x:Static app:Labels.ApplicationTitle}" | ||
WindowStartupLocation="CenterScreen" | ||
ResizeMode="NoResize" | ||
Height="800" | ||
Width="600" | ||
Loaded="BaseWindow_Loaded" | ||
Unloaded="BaseWindow_Unloaded"> | ||
<Grid> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto" /> | ||
<RowDefinition Height="*" /> | ||
</Grid.RowDefinitions> | ||
|
||
<Grid Margin="9"> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="Auto" /> | ||
<ColumnDefinition Width="*" /> | ||
</Grid.ColumnDefinitions> | ||
|
||
<Image | ||
x:Name="_resourceIcon" | ||
Height="32" | ||
Margin="0,0,10,0" | ||
VerticalAlignment="Top" /> | ||
|
||
<StackPanel | ||
Orientation="Vertical" | ||
Grid.Column="1"> | ||
<TextBlock | ||
Margin="0,0,0,4" | ||
FontWeight="Bold" | ||
Text="{x:Static app:Labels.InteractiveAuthenticationWindow_TheFollowingResourceRequiresYourCredentialsLabel}" /> | ||
<TextBlock x:Name="_resourceName">RESOURCE NAME</TextBlock> | ||
</StackPanel> | ||
</Grid> | ||
|
||
<wv2:WebView2 | ||
Name="_webView" | ||
Grid.Row="1" | ||
Grid.ColumnSpan="2" /> | ||
</Grid> | ||
</utilities:BaseWindow> |
Oops, something went wrong.