Implementing api key authentication scheme and validation. Added default value in dtos

This commit was merged in pull request #5.
This commit is contained in:
2026-01-17 21:05:20 +01:00
parent 01c86406dc
commit 56b14f60f1
8 changed files with 110 additions and 11 deletions

View File

@@ -6,9 +6,8 @@ public class CreateApiKeyDto
{
[MaxLength(30)]
public string Name { get; set; }
[MaxLength(300)]
public string Description { get; set; }
[MaxLength(300)] public string Description { get; set; } = "";
public string[] Permissions { get; set; }
}

View File

@@ -6,9 +6,8 @@ public class UpdateApiKeyDto
{
[MaxLength(30)]
public string Name { get; set; }
[MaxLength(300)]
public string Description { get; set; }
[MaxLength(300)] public string Description { get; set; } = "";
public string[] Permissions { get; set; }
}