diff --git a/src/Identity/IdentityServer/ApiClient.cs b/src/Identity/IdentityServer/ApiClient.cs index d4eafe1d4..02fd3dd40 100644 --- a/src/Identity/IdentityServer/ApiClient.cs +++ b/src/Identity/IdentityServer/ApiClient.cs @@ -33,7 +33,13 @@ public class ApiClient : Client } else if (id == "desktop") { - RedirectUris = new[] { "bitwarden://sso-callback" }; + var desktopUris = new List(); + desktopUris.Add("bitwarden://sso-callback"); + for (var port = 8065; port <= 8070; port++) + { + desktopUris.Add(string.Format("http://localhost:{0}", port)); + } + RedirectUris = desktopUris; PostLogoutRedirectUris = new[] { "bitwarden://logged-out" }; } else if (id == "connector")