improve voice chat security by implementing join validation
This commit is contained in:
parent
2ca092b017
commit
1915198d82
7 changed files with 392 additions and 9 deletions
|
|
@ -3,6 +3,14 @@ using System.Text.Json.Serialization;
|
|||
namespace LarpixVoice;
|
||||
|
||||
[JsonSerializable(typeof(string[]))]
|
||||
[JsonSerializable(typeof(VoiceAuthBody))]
|
||||
internal partial class JsonAppSerializerContext : JsonSerializerContext
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public record VoiceAuthBody(
|
||||
[property: JsonPropertyName("room")] string Room,
|
||||
[property: JsonPropertyName("userId")] string UserId,
|
||||
[property: JsonPropertyName("publicId")] string PublicId,
|
||||
[property: JsonPropertyName("iv")] string Iv,
|
||||
[property: JsonPropertyName("ct")] string Ct);
|
||||
Loading…
Add table
Add a link
Reference in a new issue