1
0
mirror of https://github.com/bitwarden/server synced 2025-12-17 08:43:27 +00:00

added more client redirect uris for clis (#849)

This commit is contained in:
Kyle Spearrin
2020-08-05 10:53:55 -04:00
committed by GitHub
parent 44717b2d4c
commit 004e3c58ee

View File

@@ -54,8 +54,13 @@ namespace Bit.Core.IdentityServer
} }
else if (id == "connector") else if (id == "connector")
{ {
RedirectUris = new[] { "bwdc://sso-callback" }; var connectorUris = new List<string>();
PostLogoutRedirectUris = new[] { "bwdc://logged-out" }; for (var port = 8065; port <= 8070; port++)
{
connectorUris.Add(string.Format("http://localhost:{0}", port));
}
RedirectUris = connectorUris.Append("bwdc://sso-callback").ToList();
PostLogoutRedirectUris = connectorUris.Append("bwdc://logged-out").ToList();
} }
else if (id == "browser") else if (id == "browser")
{ {
@@ -65,8 +70,13 @@ namespace Bit.Core.IdentityServer
} }
else if (id == "cli") else if (id == "cli")
{ {
RedirectUris = new[] { "bitwardencli://sso-callback" }; var cliUris = new List<string>();
PostLogoutRedirectUris = new[] { "bitwardencli://logged-out" }; for (var port = 8065; port <= 8070; port++)
{
cliUris.Add(string.Format("http://localhost:{0}", port));
}
RedirectUris = cliUris;
PostLogoutRedirectUris = cliUris;
} }
else if (id == "mobile") else if (id == "mobile")
{ {