Skip to content

Commit ebda84a

Browse files
committed
More forgiving config check
1 parent f4d923e commit ebda84a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Api/Controllers/SsoCookieVendorController.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ namespace Bit.Api.Controllers;
66

77
/// <summary>
88
/// Provides an endpoint to read an SSO cookie and redirect to a custom URI
9-
/// scheme. The load balancer must be configured such that requests to this
10-
/// endpoint do not have the auth cookie stripped.
9+
/// scheme. The load balancer/reverse proxy must be configured such that
10+
/// requests to this endpoint do not have the auth cookie stripped.
1111
/// </summary>
1212
[Route("sso-cookie-vendor")]
1313
public class SsoCookieVendorController(IGlobalSettings globalSettings) : Controller
@@ -29,7 +29,7 @@ public class SsoCookieVendorController(IGlobalSettings globalSettings) : Control
2929
public IActionResult Get()
3030
{
3131
var bootstrap = _globalSettings.Communication?.Bootstrap;
32-
if (string.IsNullOrEmpty(bootstrap) || bootstrap != "ssoCookieVendor")
32+
if (string.IsNullOrEmpty(bootstrap) || !bootstrap.Equals("ssoCookieVendor", StringComparison.OrdinalIgnoreCase))
3333
{
3434
return NotFound();
3535
}

0 commit comments

Comments
 (0)