mirror of
https://github.com/cadmium-im/zirconium-sharp.git
synced 2024-11-09 12:11:04 +00:00
Make multiple EntityID in SessionAuthData
This commit is contained in:
parent
dea57a3cb2
commit
38f2d9d1d6
@ -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; }
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user