Replace custom socket implementation with SignalR.
Replace MSAL and custom cookie auth with Microsoft.Identity.EntityFramework Also some UI redesign to accommodate different login experience.
This commit is contained in:
11
Shogi.Api/Controllers/Extentions.cs
Normal file
11
Shogi.Api/Controllers/Extentions.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System.Security.Claims;
|
||||
|
||||
namespace Shogi.Api.Controllers;
|
||||
|
||||
public static class Extentions
|
||||
{
|
||||
public static string? GetId(this ClaimsPrincipal self)
|
||||
{
|
||||
return self.Claims.FirstOrDefault(claim => claim.Type == ClaimTypes.NameIdentifier)?.Value;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user