From 2ddb26c69f5b3653dcef5374a85c08599e5864e0 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Tue, 14 Jan 2025 21:49:54 +0100 Subject: [PATCH] feat(Verbraucher): Erstellen, um Konsumenten von Auth.API zu konfigurieren --- src/DigitalData.Auth.API/Config/Consumer.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/DigitalData.Auth.API/Config/Consumer.cs diff --git a/src/DigitalData.Auth.API/Config/Consumer.cs b/src/DigitalData.Auth.API/Config/Consumer.cs new file mode 100644 index 0000000..f2c33ef --- /dev/null +++ b/src/DigitalData.Auth.API/Config/Consumer.cs @@ -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. + } +} \ No newline at end of file