1
0
mirror of https://github.com/bitwarden/server synced 2025-12-18 01:03:17 +00:00

fix: change policies to static strings and update auth owned endpoints (#6296)

This commit is contained in:
Ike
2025-09-24 08:42:56 -04:00
committed by GitHub
parent ff092a031e
commit 6e4f05ebd3
7 changed files with 25 additions and 14 deletions

View File

@@ -9,6 +9,7 @@ using Bit.Core;
using Bit.Core.AdminConsole.Enums.Provider;
using Bit.Core.AdminConsole.Repositories;
using Bit.Core.AdminConsole.Services;
using Bit.Core.Auth.Identity;
using Bit.Core.Auth.Models.Api.Request.Accounts;
using Bit.Core.Auth.Services;
using Bit.Core.Auth.UserFeatures.TdeOffboardingPassword.Interfaces;
@@ -27,7 +28,7 @@ using Microsoft.AspNetCore.Mvc;
namespace Bit.Api.Auth.Controllers;
[Route("accounts")]
[Authorize("Application")]
[Authorize(Policies.Application)]
public class AccountsController : Controller
{
private readonly IOrganizationService _organizationService;