Make multiple EntityID in SessionAuthData

This commit is contained in:
ChronosX88 2020-10-10 22:59:41 +04:00
parent dea57a3cb2
commit 38f2d9d1d6
Signed by: ChronosXYZ
GPG Key ID: 085A69A82C8C511A
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ namespace Zirconium.Core
{ {
public class SessionAuthData public class SessionAuthData
{ {
public string EntityID { get; set; } public string[] EntityID { get; set; }
public string DeviceID { get; set; } public string DeviceID { get; set; }
} }
} }

View File

@ -103,7 +103,7 @@ namespace DefaultAuthProvider
{ {
SessionAuthData payload = new SessionAuthData(); SessionAuthData payload = new SessionAuthData();
payload.DeviceID = deviceID; payload.DeviceID = deviceID;
payload.EntityID = entityID; payload.EntityID = new string[] { entityID };
return new JwtBuilder() return new JwtBuilder()
.WithAlgorithm(new HMACSHA256Algorithm()) // symmetric .WithAlgorithm(new HMACSHA256Algorithm()) // symmetric
.WithSecret(this.jwtSecret) .WithSecret(this.jwtSecret)