2026-10-01 08:09:45 +02:00
|
|
|
namespace decePubClient.Models;
|
2022-02-15 16:15:17 +01:00
|
|
|
|
|
|
|
|
public class AppConfiguration
|
|
|
|
|
{
|
|
|
|
|
public string Version { get; set; }
|
2026-10-01 08:09:45 +02:00
|
|
|
public string ApiBaseAddress { get; set; }
|
2026-10-04 11:03:14 +02:00
|
|
|
/// <summary>PrivaPub's first-party application, the only one allowed to exchange the root JWT for persona tokens.</summary>
|
|
|
|
|
public string ClientId { get; set; } = "decepub";
|
|
|
|
|
|
|
|
|
|
/// <summary>PrivaPub's own host, which the instance API describes like any other server.</summary>
|
|
|
|
|
public string ApiHost => Uri.TryCreate(ApiBaseAddress, UriKind.Absolute, out var uri) ? uri.Host.ToLowerInvariant() : default;
|
|
|
|
|
}
|