Skip to content

Commit

Permalink
Merge pull request #780 from openziti/issue-779-ext-provider-by-click
Browse files Browse the repository at this point in the history
change the hover action to on click for ext providers
  • Loading branch information
dovholuknf authored Jan 8, 2025
2 parents 53eef96 + d1ea224 commit 4f49e88
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 15 deletions.
3 changes: 1 addition & 2 deletions DesktopEdge/Views/ItemRenderers/IdentityItem.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@
VerticalAlignment="Stretch"
HorizontalAlignment="Stretch"
Cursor="Hand"
MouseUp="DoMFAOrOpen"
MouseEnter="ExternalIdpHover"
MouseLeftButtonUp="DoMFAOrOpen"
>
<Rectangle.ContextMenu>
<ContextMenu Name="IconContext"
Expand Down
10 changes: 6 additions & 4 deletions DesktopEdge/Views/ItemRenderers/IdentityItem.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ limitations under the License.
using WinForms=System.Windows.Forms;
using System.Security.Cryptography;
using System.Threading.Tasks;
using System.Windows.Input;


namespace ZitiDesktopEdge {
Expand Down Expand Up @@ -389,7 +390,7 @@ private void DoMFAOrOpen(object sender, System.Windows.Input.MouseButtonEventArg
PostureTimedOut.Visibility == Visibility.Visible) {
MFAAuthenticate(sender, e);
} else if (ExtAuthRequired.Visibility == Visibility.Visible) {
CompleteExtAuth(sender, e);
ShowExtAuthList(sender, e);
} else {
OpenDetails(sender, e);
}
Expand Down Expand Up @@ -433,7 +434,7 @@ async void performExtAuth() {
}
}

private void ExternalIdpHover(object sender, System.Windows.Input.MouseEventArgs e) {
private void ShowExtAuthList(object sender, System.Windows.Input.MouseEventArgs e) {
if (!_identity.NeedsExtAuth) {
return;
}
Expand All @@ -452,8 +453,7 @@ private void ExternalIdpHover(object sender, System.Windows.Input.MouseEventArgs
// Add menu items dynamically
foreach (var provider in _identity.ExtAuthProviders) {
var menuItem = new MenuItem();
menuItem.Click += (s, mouseEventArgs) =>
{
menuItem.Click += (s, mouseEventArgs) => {
CompleteExternalAuth?.Invoke(Identity, provider);
};
menuItem.Header = provider;
Expand All @@ -465,6 +465,8 @@ private void ExternalIdpHover(object sender, System.Windows.Input.MouseEventArgs
}
fe.ContextMenu.PlacementTarget = fe;
fe.ContextMenu.IsOpen = true;
} else {
CompleteExtAuth(sender, e as MouseButtonEventArgs);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions DesktopEdge/Views/Screens/IdentityDetails.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@
Grid.Column="0"
Fill="Purple"
/>
<TextBox
Text="Default provider?"
<Label
Content="Default provider?"
Margin="0,5,0,5"
Background="Transparent"
VerticalAlignment="Center"
Expand Down
4 changes: 4 additions & 0 deletions DesktopEdge/Views/Screens/IdentityDetails.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,10 @@ private void IsDefaultProvider_Unchecked(object sender, RoutedEventArgs e) {
}

private void IsDefaultProvider_PreviewMouseDown(object sender, MouseButtonEventArgs e) {
if (ProviderList.SelectedItem == null) {
e.Handled = true;
return;
}
userInitiatedChange = true;
}

Expand Down
2 changes: 1 addition & 1 deletion Installer/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ $ADV_INST_HOME = "C:\Program Files (x86)\Caphyon\Advanced Installer ${ADV_INST_V
$SIGNTOOL="${ADV_INST_HOME}\third-party\winsdk\x64\signtool.exe"
$ADVINST = "${ADV_INST_HOME}\bin\x86\AdvancedInstaller.com"
$ADVPROJECT = "${scriptPath}\ZitiDesktopEdge.aip"
$ZITI_EDGE_TUNNEL_VERSION="v1.3.3"
$ZITI_EDGE_TUNNEL_VERSION="v1.3.5"

echo "Cleaning previous build folder if it exists"
Remove-Item "${buildPath}" -r -ErrorAction Ignore
Expand Down
16 changes: 16 additions & 0 deletions release-notes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# Release 2.5.2.4
## What's New
* nothing - bugfix

## Other changes
* [issue 779 - changed on hover to on click for initiating external provider auth](https://github.com/openziti/desktop-edge-win/issues/779)

## Bugs fixed:
* none

## Dependencies

* ziti-tunneler: v1.3.5
* ziti-sdk: 1.3.4
* tlsuv: v0.33.1[OpenSSL 3.3.1 4 Jun 2024]

# Release 2.5.2.3
## What's New
* nothing - bugfix
Expand Down
10 changes: 5 additions & 5 deletions release-streams/beta.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "2.5.2.3",
"tag_name": "2.5.2.3",
"published_at": "2024-12-20T07:12:05Z",
"name": "2.5.2.4",
"tag_name": "2.5.2.4",
"published_at": "2025-01-08T04:13:51Z",
"installation_critical": false,
"assets": [
{
"name": "Ziti.Desktop.Edge.Client-2.5.2.3.exe",
"browser_download_url": "https://github.com/openziti/desktop-edge-win/releases/download/2.5.2.3/Ziti.Desktop.Edge.Client-2.5.2.3.exe"
"name": "Ziti.Desktop.Edge.Client-2.5.2.4.exe",
"browser_download_url": "https://github.com/openziti/desktop-edge-win/releases/download/2.5.2.4/Ziti.Desktop.Edge.Client-2.5.2.4.exe"
}
]
}
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.5.2.3
2.5.2.4

0 comments on commit 4f49e88

Please sign in to comment.