|
|
|
@ -8,13 +8,6 @@ namespace Microsoft.Extensions.DependencyInjection |
|
|
|
{ |
|
|
|
public static class AbpAuthorizationServiceCollectionExtensions |
|
|
|
{ |
|
|
|
//TODO: Remove this and use AddAlwaysAllowAuthorization
|
|
|
|
[Obsolete("Use AddAlwaysAllowAuthorization instead")] |
|
|
|
public static IServiceCollection AddAlwaysAllowPermissionChecker(this IServiceCollection services) |
|
|
|
{ |
|
|
|
return services.Replace(ServiceDescriptor.Singleton<IPermissionChecker, AlwaysAllowPermissionChecker>()); |
|
|
|
} |
|
|
|
|
|
|
|
public static IServiceCollection AddAlwaysAllowAuthorization(this IServiceCollection services) |
|
|
|
{ |
|
|
|
services.Replace(ServiceDescriptor.Singleton<IAuthorizationService, AlwaysAllowAuthorizationService>()); |
|
|
|
|