修改hub

This commit is contained in:
2022-08-05 17:22:43 +08:00
parent e6239aef8b
commit ef81a4c27e
3 changed files with 17 additions and 16 deletions
+8
View File
@@ -14,6 +14,14 @@ namespace IRaCIS.Core.API
}
public class IRaCISUserIdProvider : IUserIdProvider
{
public virtual string GetUserId(HubConnectionContext connection)
{
return connection.User?.FindFirst(JwtIRaCISClaimType.Id)?.Value!;
}
}
//[Authorize]
[AllowAnonymous]
[DisableCors]