mirror of
https://github.com/TomasiDeveloping/PlayerManagement.git
synced 2026-04-16 09:12:20 +00:00
14 lines
365 B
C#
14 lines
365 B
C#
using System.Security.Claims;
|
|
using Application.Interfaces;
|
|
|
|
namespace Application.Services;
|
|
|
|
public class ClaimTypeService : IClaimTypeService
|
|
{
|
|
public string GetFullName(ClaimsPrincipal claimsPrincipal)
|
|
{
|
|
var userName = claimsPrincipal.FindFirstValue("playerName");
|
|
|
|
return string.IsNullOrEmpty(userName) ? "Unknown" : userName;
|
|
}
|
|
} |