feat(auth): AD-Authentifizierungsprüfung hinzugefügt

This commit is contained in:
Developer 02
2024-04-02 15:02:07 +02:00
parent fa66e7ba0d
commit 59619702ab
56 changed files with 47 additions and 34 deletions

View File

@@ -1,6 +0,0 @@
namespace DigitalData.Core.Application
{
public class AuthService
{
}
}

View File

@@ -48,7 +48,7 @@ namespace DigitalData.Core.Application
{
var entity = _mapper.MapOrThrow<TEntity>(createDto);
var createdEntity = await _repository.CreateAsync(entity);
if(createdEntity is null)
if (createdEntity is null)
return Failed<TId>();
else
return Successful(KeyValueOf(createdEntity));
@@ -145,7 +145,7 @@ namespace DigitalData.Core.Application
/// <returns>The ID of the entity.</returns>
protected virtual TId KeyValueOf(TEntity entity)
{
if(_keyPropertyInfo is null)
if (_keyPropertyInfo is null)
throw new InvalidOperationException($"No property with [Key] attribute found on {typeof(TEntity).Name} entity.");
object idObj = _keyPropertyInfo?.GetValue(entity) ?? throw new InvalidOperationException($"The ID property of {typeof(TEntity).Name} entity cannot be null.");

View File

@@ -1 +1 @@
27b4d1c0e521dbdcdae7e49ff5b85233b84a7ece
9c98a8de39558d32de60bd00a4f3744b3887e0d2