mirror of
https://github.com/bitwarden/server.git
synced 2026-01-31 06:03:12 +08:00
Restrict cookie vendor to self host using attribute
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Bit.Core.Settings;
|
||||
using Bit.Core.Utilities;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
@@ -10,6 +11,7 @@ namespace Bit.Api.Controllers;
|
||||
/// requests to this endpoint do not have the auth cookie stripped.
|
||||
/// </summary>
|
||||
[Route("sso-cookie-vendor")]
|
||||
[SelfHosted(SelfHostedOnly = true)]
|
||||
public class SsoCookieVendorController(IGlobalSettings globalSettings) : Controller
|
||||
{
|
||||
private readonly IGlobalSettings _globalSettings = globalSettings;
|
||||
|
||||
Reference in New Issue
Block a user