1
0
mirror of https://github.com/bitwarden/server synced 2026-01-06 10:34:01 +00:00

[SM-1256] Add BulkSecretAuthorizationHandler (#4099)

* Add AccessToSecretsAsync to the repository

* Add BulkSecretAuthorizationHandler

* Update controller to use the new authz handler

* Add integration test coverage
This commit is contained in:
Thomas Avery
2024-07-09 10:06:33 -05:00
committed by GitHub
parent 313eef49f0
commit acc4808509
10 changed files with 484 additions and 72 deletions

View File

@@ -0,0 +1,12 @@
using Microsoft.AspNetCore.Authorization.Infrastructure;
namespace Bit.Core.SecretsManager.AuthorizationRequirements;
public class BulkSecretOperationRequirement : OperationAuthorizationRequirement
{
}
public static class BulkSecretOperations
{
public static readonly BulkSecretOperationRequirement ReadAll = new() { Name = nameof(ReadAll) };
}