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:
@@ -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) };
|
||||
}
|
||||
Reference in New Issue
Block a user