mirror of
https://github.com/bitwarden/server.git
synced 2025-04-28 08:12:22 -05:00

* Extract authorization from commands * Swap to request model validation. * Swap to pattern detection
14 lines
437 B
C#
14 lines
437 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 Update = new() { Name = nameof(Update) };
|
|
}
|