14 lines
515 B
C#
14 lines
515 B
C#
namespace Distribution.Infra.Authorization.Middleware;
|
|
|
|
/// <summary>
|
|
/// Ported from OSMCore's System/Authentication/JwtOptions.cs. Binds to the same "Jwt" config
|
|
/// section already used by Program.cs's AddJwtBearer setup (Jwt:PublicKey/Audience/Issuer) — no
|
|
/// new config keys needed.
|
|
/// </summary>
|
|
public sealed record JwtOptions
|
|
{
|
|
public string PublicKey { get; init; } = string.Empty;
|
|
public string Audience { get; init; } = string.Empty;
|
|
public string Issuer { get; init; } = string.Empty;
|
|
}
|