1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-21 12:05:42 +01:00

Allow localhost callback on desktop (#4649)

This commit is contained in:
Bernd Schoolmann 2024-08-26 15:11:48 +02:00 committed by GitHub
parent 22bd755b3c
commit a5363c1513
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,7 +33,13 @@ public class ApiClient : Client
}
else if (id == "desktop")
{
RedirectUris = new[] { "bitwarden://sso-callback" };
var desktopUris = new List<string>();
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")