From 25283a62ec84991f038d9b91ae4f894de5017d87 Mon Sep 17 00:00:00 2001 From: dovholuknf <46322585+dovholuknf@users.noreply.github.com> Date: Tue, 4 Mar 2025 22:08:52 -0500 Subject: [PATCH 1/2] add more copyrights to files --- DesktopEdge/App.xaml | 17 ++++++++++++++++- DesktopEdge/MainWindow.xaml | 17 ++++++++++++++++- DesktopEdge/Views/Controls/AddIdentityCA.xaml | 17 ++++++++++++++++- .../Views/Controls/AddIdentityCA.xaml.cs | 17 ++++++++++++++++- DesktopEdge/Views/Controls/AddIdentityUrl.xaml | 17 ++++++++++++++++- .../Views/Controls/AddIdentityUrl.xaml.cs | 17 ++++++++++++++++- .../Views/Controls/ConfirmationDialog.xaml | 17 ++++++++++++++++- .../Views/Controls/ConfirmationDialog.xaml.cs | 18 +++++++++++++++++- .../Controls/ExternalProviderSelector.xaml | 17 ++++++++++++++++- .../Controls/ExternalProviderSelector.xaml.cs | 17 ++++++++++++++++- DesktopEdge/Views/Controls/FilePicker.xaml | 17 ++++++++++++++++- DesktopEdge/Views/Controls/FilePicker.xaml.cs | 17 ++++++++++++++++- DesktopEdge/Views/Controls/StyledButton.xaml | 17 ++++++++++++++++- .../Views/Controls/StyledButton.xaml.cs | 17 ++++++++++++++++- DesktopEdge/Views/Controls/Toggler.xaml | 17 ++++++++++++++++- DesktopEdge/Views/Controls/Toggler.xaml.cs | 17 ++++++++++++++++- DesktopEdge/Views/ItemRenderers/Filter.xaml | 17 ++++++++++++++++- DesktopEdge/Views/ItemRenderers/Filter.xaml.cs | 17 ++++++++++++++++- .../Views/ItemRenderers/IdentityItem.xaml | 17 ++++++++++++++++- .../Views/ItemRenderers/MenuEditItem.xaml | 17 ++++++++++++++++- .../Views/ItemRenderers/MenuEditItem.xaml.cs | 17 ++++++++++++++++- .../Views/ItemRenderers/MenuEditSearch.xaml | 17 ++++++++++++++++- .../Views/ItemRenderers/MenuEditSearch.xaml.cs | 17 ++++++++++++++++- .../Views/ItemRenderers/MenuEditToggle.xaml | 17 ++++++++++++++++- .../Views/ItemRenderers/MenuEditToggle.xaml.cs | 17 ++++++++++++++++- .../Views/ItemRenderers/MenuIdentityItem.xaml | 17 ++++++++++++++++- .../ItemRenderers/MenuIdentityItem.xaml.cs | 17 ++++++++++++++++- DesktopEdge/Views/ItemRenderers/MenuItem.xaml | 17 ++++++++++++++++- .../Views/ItemRenderers/MenuItem.xaml.cs | 17 ++++++++++++++++- .../Views/ItemRenderers/SubMenuItem.xaml | 18 ++++++++++++++++-- .../Views/ItemRenderers/SubMenuItem.xaml.cs | 17 ++++++++++++++++- .../Views/ItemRenderers/SubOptionItem.xaml | 18 ++++++++++++++++-- .../Views/ItemRenderers/SubOptionItem.xaml.cs | 17 ++++++++++++++++- DesktopEdge/Views/Screens/CommonDelegates.cs | 17 ++++++++++++++++- DesktopEdge/Views/Screens/Debugging.xaml | 17 ++++++++++++++++- DesktopEdge/Views/Screens/IdentityDetails.xaml | 17 ++++++++++++++++- DesktopEdge/Views/Screens/MFAScreen.xaml | 17 ++++++++++++++++- DesktopEdge/Views/Screens/MainMenu.xaml | 17 ++++++++++++++++- 38 files changed, 609 insertions(+), 40 deletions(-) diff --git a/DesktopEdge/App.xaml b/DesktopEdge/App.xaml index 648aca77e..ec2c9a66f 100644 --- a/DesktopEdge/App.xaml +++ b/DesktopEdge/App.xaml @@ -1,4 +1,19 @@ - + + + + + + + + + + + + + + + + + - \ No newline at end of file diff --git a/DesktopEdge/Views/ItemRenderers/SubMenuItem.xaml.cs b/DesktopEdge/Views/ItemRenderers/SubMenuItem.xaml.cs index a9c1f3794..a78f39349 100644 --- a/DesktopEdge/Views/ItemRenderers/SubMenuItem.xaml.cs +++ b/DesktopEdge/Views/ItemRenderers/SubMenuItem.xaml.cs @@ -1,4 +1,19 @@ -using System; +/* + Copyright NetFoundry Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ +using System; using System.Collections.Generic; using System.Linq; using System.Text; diff --git a/DesktopEdge/Views/ItemRenderers/SubOptionItem.xaml b/DesktopEdge/Views/ItemRenderers/SubOptionItem.xaml index 070882562..b4d200f11 100644 --- a/DesktopEdge/Views/ItemRenderers/SubOptionItem.xaml +++ b/DesktopEdge/Views/ItemRenderers/SubOptionItem.xaml @@ -1,4 +1,19 @@ - + - \ No newline at end of file diff --git a/DesktopEdge/Views/ItemRenderers/SubOptionItem.xaml.cs b/DesktopEdge/Views/ItemRenderers/SubOptionItem.xaml.cs index b567804e9..cd9fa6387 100644 --- a/DesktopEdge/Views/ItemRenderers/SubOptionItem.xaml.cs +++ b/DesktopEdge/Views/ItemRenderers/SubOptionItem.xaml.cs @@ -1,4 +1,19 @@ -using System; +/* + Copyright NetFoundry Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ +using System; using System.Collections.Generic; using System.Linq; using System.Text; diff --git a/DesktopEdge/Views/Screens/CommonDelegates.cs b/DesktopEdge/Views/Screens/CommonDelegates.cs index d7185c413..ff71424ae 100644 --- a/DesktopEdge/Views/Screens/CommonDelegates.cs +++ b/DesktopEdge/Views/Screens/CommonDelegates.cs @@ -1,4 +1,19 @@ -using System; +/* + Copyright NetFoundry Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ +using System; using System.Collections.Generic; using System.ComponentModel; using System.Globalization; diff --git a/DesktopEdge/Views/Screens/Debugging.xaml b/DesktopEdge/Views/Screens/Debugging.xaml index e84a7a93c..adca8ae5b 100644 --- a/DesktopEdge/Views/Screens/Debugging.xaml +++ b/DesktopEdge/Views/Screens/Debugging.xaml @@ -1,4 +1,19 @@ - + + + + Date: Wed, 5 Mar 2025 10:45:16 -0500 Subject: [PATCH 2/2] update to 1.5.1 of zet. minor cleanup from review --- DesktopEdge/Models/ZitiIdentity.cs | 2 +- DesktopEdge/Views/Controls/AddIdentityUrl.xaml.cs | 3 ++- DesktopEdge/Views/ItemRenderers/IdentityItem.xaml.cs | 4 ---- Installer/build.ps1 | 2 +- release-notes.md | 2 +- release-streams/beta.json | 2 +- 6 files changed, 6 insertions(+), 9 deletions(-) diff --git a/DesktopEdge/Models/ZitiIdentity.cs b/DesktopEdge/Models/ZitiIdentity.cs index a36cbbf71..ae9052c3b 100644 --- a/DesktopEdge/Models/ZitiIdentity.cs +++ b/DesktopEdge/Models/ZitiIdentity.cs @@ -277,7 +277,7 @@ internal async Task PerformExternalAuthEvent(DataClient client, string provider) ExternalAuthLoginResponse resp = await client.ExternalAuthLogin(Identifier, provider); if (resp?.Error == null) { if (resp?.Data?.url != null) { - Console.WriteLine(resp.Data?.url); + logger.Info("beginning external auth using url: {}", resp.Data?.url); Process.Start(resp.Data.url); } else { throw new Exception("External authentication could not start. No URL was returned to login. Inform your network administrator."); diff --git a/DesktopEdge/Views/Controls/AddIdentityUrl.xaml.cs b/DesktopEdge/Views/Controls/AddIdentityUrl.xaml.cs index 1399fb120..370aa6978 100644 --- a/DesktopEdge/Views/Controls/AddIdentityUrl.xaml.cs +++ b/DesktopEdge/Views/Controls/AddIdentityUrl.xaml.cs @@ -49,13 +49,14 @@ private async void JoinNetworkUrl(object sender, MouseButtonEventArgs e) { Mouse.OverrideCursor = Cursors.Wait; try { var result = client.GetAsync(ControllerURL.Text).Result; + Mouse.OverrideCursor = null; OnAddIdentity(payload, this); } catch { + Mouse.OverrideCursor = null; this.OnClose?.Invoke(false, this); await ((MainWindow)Application.Current.MainWindow).ShowBlurbAsync("Timed out accessing URL", ""); logger.Warn("could not connect to url"); } - Mouse.OverrideCursor = null; } private void ExecuteClose(object sender, MouseButtonEventArgs e) { diff --git a/DesktopEdge/Views/ItemRenderers/IdentityItem.xaml.cs b/DesktopEdge/Views/ItemRenderers/IdentityItem.xaml.cs index c09364141..af295c296 100644 --- a/DesktopEdge/Views/ItemRenderers/IdentityItem.xaml.cs +++ b/DesktopEdge/Views/ItemRenderers/IdentityItem.xaml.cs @@ -411,10 +411,6 @@ private async void CompleteDefaultExtAuth(object sender, System.Windows.Input.Mo await _identity.PerformExternalAuthEvent(client, defaultProvider); } catch (Exception ex) { logger.Error("external auth failed: [{}]", ex.Message); - // possibly add this back some day. right now this triggers when the ext-auth-url is a valid looking url - // but the url is invalid. for example if the user copy/pastes the proper url without the terminating char - // or http not https etc. - // ShowError("Failed to Authenticate", ex.Message); } } } else { diff --git a/Installer/build.ps1 b/Installer/build.ps1 index 17803806d..a5b2999b2 100644 --- a/Installer/build.ps1 +++ b/Installer/build.ps1 @@ -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.5.0" +$ZITI_EDGE_TUNNEL_VERSION="v1.5.1" echo "Cleaning previous build folder if it exists" Remove-Item "${buildPath}" -r -ErrorAction Ignore diff --git a/release-notes.md b/release-notes.md index de2a7fe6a..7246c8bfa 100644 --- a/release-notes.md +++ b/release-notes.md @@ -12,7 +12,7 @@ Bug fixes * jwt with invalid content no longer crashes the UI ## Dependencies -* ziti-tunneler: v1.5.0 +* ziti-tunneler: v1.5.1 * ziti-sdk: 1.5.0 * tlsuv: v0.33.6[OpenSSL 3.3.1 4 Jun 2024] diff --git a/release-streams/beta.json b/release-streams/beta.json index 78eff8c03..ea91355b7 100644 --- a/release-streams/beta.json +++ b/release-streams/beta.json @@ -1,7 +1,7 @@ { "name": "2.6.0.0", "tag_name": "2.6.0.0", - "published_at": "2025-03-03T14:28:24Z", + "published_at": "2025-03-05T05:43:04Z", "installation_critical": false, "assets": [ {