Foxnouns.NET/Foxnouns.Backend/Database/Models/FediverseApplication.cs
sam 4e9c4af4a5
feat(auth): misc fediverse auth improvements
- remove automatic app validation
- add force refresh option to GetFediverseUrlAsync
- pass state to mastodon authorization URI
2024-11-24 15:37:36 +01:00

17 lines
406 B
C#

using NodaTime;
namespace Foxnouns.Backend.Database.Models;
public class FediverseApplication : BaseModel
{
public required string Domain { get; init; }
public required string ClientId { get; set; }
public required string ClientSecret { get; set; }
public required FediverseInstanceType InstanceType { get; set; }
}
public enum FediverseInstanceType
{
MastodonApi,
MisskeyApi,
}