feat(api): аутентификация и авторизация. Кастомные ParrAuthenticationHandler и BaseSimpleRoleProvider.
This commit is contained in:
@@ -20,7 +20,7 @@ namespace PARR.API.Installers
|
||||
});
|
||||
|
||||
services.AddTransient<IClientService, ClientService>();
|
||||
|
||||
services.AddTransient<IAuthService, AuthService>();
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -13,10 +13,9 @@ namespace PARR.API.Installers
|
||||
configuration.GetSection(nameof(MqSettings)).Bind(mqSettings);
|
||||
services.AddSingleton(mqSettings);
|
||||
|
||||
|
||||
//var storageSettings = new StorageSettings();
|
||||
//configuration.GetSection(nameof(StorageSettings)).Bind(storageSettings);
|
||||
//services.AddSingleton(storageSettings);
|
||||
var userCacheSettings = new UserCacheSettings();
|
||||
configuration.GetSection(nameof(UserCacheSettings)).Bind(userCacheSettings);
|
||||
services.AddSingleton(userCacheSettings);
|
||||
|
||||
//TODO: add other
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user