add basic suppport for client_credentials oauth grant
This commit is contained in:
parent
049f4a56de
commit
8995213d26
20 changed files with 627 additions and 58 deletions
8
Foxchat.Core/Models/Http/Apps.cs
Normal file
8
Foxchat.Core/Models/Http/Apps.cs
Normal file
|
@ -0,0 +1,8 @@
|
|||
namespace Foxchat.Core.Models.Http;
|
||||
|
||||
public static class Apps
|
||||
{
|
||||
public record CreateRequest(string Name, string[] Scopes, string[] RedirectUris);
|
||||
public record CreateResponse(Ulid Id, string ClientId, string ClientSecret, string Name, string[] Scopes, string[] RedirectUris);
|
||||
public record GetSelfResponse(Ulid Id, string ClientId, string? ClientSecret, string Name, string[] Scopes, string[] RedirectUris);
|
||||
}
|
9
Foxchat.Core/Models/Http/Hello.cs
Normal file
9
Foxchat.Core/Models/Http/Hello.cs
Normal file
|
@ -0,0 +1,9 @@
|
|||
namespace Foxchat.Core.Models.Http;
|
||||
|
||||
public static class Hello
|
||||
{
|
||||
public record HelloRequest(string Host);
|
||||
public record HelloResponse(string PublicKey, string Host);
|
||||
public record NodeInfo(string Software, string PublicKey);
|
||||
public record NodeSoftware(string Name, string? Version);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue