Files
decePubClient/Models/AppConfiguration.cs
T

12 lines
555 B
C#
Raw Permalink Normal View History

namespace decePubClient.Models;
2022-02-15 16:15:17 +01:00
public class AppConfiguration
{
public string Version { get; set; }
public string ApiBaseAddress { get; set; }
/// <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;
}