diff --git a/src/Eurofurence.App.Server.Web/Identity/ApiKeyAuthenticationHandler.cs b/src/Eurofurence.App.Server.Web/Identity/ApiKeyAuthenticationHandler.cs index ac0f387..66896a8 100644 --- a/src/Eurofurence.App.Server.Web/Identity/ApiKeyAuthenticationHandler.cs +++ b/src/Eurofurence.App.Server.Web/Identity/ApiKeyAuthenticationHandler.cs @@ -28,7 +28,8 @@ protected override Task HandleAuthenticateAsync() var claims = new List { - new Claim(ClaimTypes.Name, apiKeyOptions.PrincipalName) + new Claim(ClaimTypes.Name, apiKeyOptions.PrincipalName), + new Claim("sub", apiKeyOptions.PrincipalName) }; foreach (var role in apiKeyOptions.Roles)