feat(Verbraucher): Erstellen, um Konsumenten von Auth.API zu konfigurieren
This commit is contained in:
parent
310d480f59
commit
2ddb26c69f
19
src/DigitalData.Auth.API/Config/Consumer.cs
Normal file
19
src/DigitalData.Auth.API/Config/Consumer.cs
Normal 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.
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user