feat(Verbraucher): Erstellen, um Konsumenten von Auth.API zu konfigurieren

This commit is contained in:
Developer 02 2025-01-14 21:49:54 +01:00
parent 310d480f59
commit 2ddb26c69f

View File

@ -0,0 +1,19 @@
using DigitalData.Auth.API.Config;
namespace DigitalData.Core.Tests.API.Config
{
public class Consumer
{
public required string Route { get; init; }
public required string Audience { get; init; }
private CookieOptionsProvider? _cookieOptions;
public CookieOptionsProvider CookieOptions { get => _cookieOptions ?? Parent?.DefaultCookieOptions; init => _cookieOptions = value; }
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
public AuthApiParams Parent { private get; set; }
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
}
}