Skip to content

Commit b2161e5

Browse files
PM-34130 - Fix EF constructor in DeviceAuthDetails to copy all Device fields
Copy UserId, PushToken, RevisionDate, EncryptedPrivateKey, and Active from the source Device in the EF constructor. Previously these fields were omitted, causing IsTrusted to always return false for EF-sourced results.
1 parent 7e5ca36 commit b2161e5

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/Core/Auth/Models/Data/DeviceAuthDetails.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,17 @@ public DeviceAuthDetails(
2828
}
2929

3030
Id = device.Id;
31+
UserId = device.UserId;
3132
Name = device.Name;
3233
Type = device.Type;
3334
Identifier = device.Identifier;
35+
PushToken = device.PushToken;
3436
CreationDate = device.CreationDate;
35-
EncryptedPublicKey = device.EncryptedPublicKey;
37+
RevisionDate = device.RevisionDate;
3638
EncryptedUserKey = device.EncryptedUserKey;
39+
EncryptedPublicKey = device.EncryptedPublicKey;
40+
EncryptedPrivateKey = device.EncryptedPrivateKey;
41+
Active = device.Active;
3742
AuthRequestId = authRequestId;
3843
AuthRequestCreationDate = authRequestCreationDate;
3944
}

0 commit comments

Comments
 (0)