diff --git a/src/Auth0.OidcClient.MAUI.Platforms.Windows/Helpers.cs b/src/Auth0.OidcClient.MAUI.Platforms.Windows/Helpers.cs index 8e7aa153..00a28846 100644 --- a/src/Auth0.OidcClient.MAUI.Platforms.Windows/Helpers.cs +++ b/src/Auth0.OidcClient.MAUI.Platforms.Windows/Helpers.cs @@ -79,11 +79,12 @@ public bool IsUriProtocolDeclared(string scheme) /// The Uri to open public void OpenBrowser(Uri uri) { - var process = new System.Diagnostics.Process(); - process.StartInfo.FileName = "rundll32.exe"; - process.StartInfo.Arguments = $"url.dll,FileProtocolHandler \"{uri.ToString().Replace("\"", "%22")}\""; - process.StartInfo.UseShellExecute = true; - process.Start(); + ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo + { + FileName = uri.ToString(), + UseShellExecute = true + }; + System.Diagnostics.Process.Start(psi); } public static string Encode(string value) @@ -98,4 +99,4 @@ public static string Decode(string value) return Encoding.UTF8.GetString(bytes); } } -} \ No newline at end of file +}