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:
parent
22bd755b3c
commit
a5363c1513
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user