Browse Source

Add RequestDeviceIdentifier to response (#5403)

pull/5414/head
Todd Martin 10 months ago committed by GitHub
parent
commit
055e4e3066
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      src/Api/Auth/Models/Response/AuthRequestResponseModel.cs

2
src/Api/Auth/Models/Response/AuthRequestResponseModel.cs

@ -18,6 +18,7 @@ public class AuthRequestResponseModel : ResponseModel @@ -18,6 +18,7 @@ public class AuthRequestResponseModel : ResponseModel
Id = authRequest.Id;
PublicKey = authRequest.PublicKey;
RequestDeviceIdentifier = authRequest.RequestDeviceIdentifier;
RequestDeviceTypeValue = authRequest.RequestDeviceType;
RequestDeviceType = authRequest.RequestDeviceType.GetType().GetMember(authRequest.RequestDeviceType.ToString())
.FirstOrDefault()?.GetCustomAttribute<DisplayAttribute>()?.GetName();
@ -32,6 +33,7 @@ public class AuthRequestResponseModel : ResponseModel @@ -32,6 +33,7 @@ public class AuthRequestResponseModel : ResponseModel
public Guid Id { get; set; }
public string PublicKey { get; set; }
public string RequestDeviceIdentifier { get; set; }
public DeviceType RequestDeviceTypeValue { get; set; }
public string RequestDeviceType { get; set; }
public string RequestIpAddress { get; set; }

Loading…
Cancel
Save