修改hub
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user