Files
git.stella-ops.org/inspiration/Ablera.Serdica.Authorization/DependencyInjection/ServiceCollectionExtensions.cs
root df5984d07e
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
up
2025-10-10 06:53:40 +00:00

22 lines
712 B
C#

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>();
}
}