up
Some checks failed
Build Test Deploy / build-test (push) Has been cancelled
Build Test Deploy / authority-container (push) Has been cancelled
Build Test Deploy / docs (push) Has been cancelled
Build Test Deploy / deploy (push) Has been cancelled
Docs CI / lint-and-preview (push) Has been cancelled
Some checks failed
Build Test Deploy / build-test (push) Has been cancelled
Build Test Deploy / authority-container (push) Has been cancelled
Build Test Deploy / docs (push) Has been cancelled
Build Test Deploy / deploy (push) Has been cancelled
Docs CI / lint-and-preview (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using Ablera.Serdica.Authorization;
|
||||
using Ablera.Serdica.Authorization.Models;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Ablera.Serdica.DependencyInjection;
|
||||
|
||||
public static class AuthorizationServiceCollectionExtensions
|
||||
{
|
||||
public static IServiceCollection AddSerdicaAuthorization(this IServiceCollection services, IConfiguration configuration)
|
||||
{
|
||||
return services
|
||||
.Configure<RolesConfig>(configuration.GetSection(nameof(RolesConfig)))
|
||||
.AddSingleton<GroupsUtilities>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user