mirror of
https://github.com/bitwarden/server.git
synced 2025-04-28 00:02:26 -05:00

* Add support CanReadSecret authorization * Extract base response model for secret * Add support for SA bulk fetching event logging * secret repository bug fix * Add endpoint and request for bulk fetching secrets * Swap to original reference event * Add unit tests * Add integration tests * Add unit tests for authz handler * update authz handler tests ---------
16 lines
625 B
C#
16 lines
625 B
C#
using Microsoft.AspNetCore.Authorization.Infrastructure;
|
|
|
|
namespace Bit.Core.SecretsManager.AuthorizationRequirements;
|
|
|
|
public class SecretOperationRequirement : OperationAuthorizationRequirement
|
|
{
|
|
}
|
|
|
|
public static class SecretOperations
|
|
{
|
|
public static readonly SecretOperationRequirement Create = new() { Name = nameof(Create) };
|
|
public static readonly SecretOperationRequirement Read = new() { Name = nameof(Read) };
|
|
public static readonly SecretOperationRequirement Update = new() { Name = nameof(Update) };
|
|
public static readonly SecretOperationRequirement Delete = new() { Name = nameof(Delete) };
|
|
}
|