2 changed files with 14 additions and 0 deletions
@ -0,0 +1,13 @@
@@ -0,0 +1,13 @@
|
||||
using Bit.Core.Vault.AuthorizationHandlers; |
||||
using Microsoft.AspNetCore.Authorization; |
||||
using Microsoft.Extensions.DependencyInjection; |
||||
|
||||
namespace Bit.Core.Utilities; |
||||
|
||||
public static class ServiceCollectionExtensions |
||||
{ |
||||
public static void AddCoreAuthorizationHandlers(this IServiceCollection services) |
||||
{ |
||||
services.AddScoped<IAuthorizationHandler, CollectionAccessAuthorizationHandler>(); |
||||
} |
||||
} |
||||
Loading…
Reference in new issue