Last ...
This commit is contained in:
@@ -10,7 +10,6 @@ using xHttpService.Constants;
|
||||
using xIdentityModels.Dtos;
|
||||
using xIdentityService.Constants;
|
||||
using xModels.Dtos;
|
||||
using xModels.Extensions;
|
||||
|
||||
namespace xIdentityService.Providers
|
||||
{
|
||||
@@ -33,7 +32,7 @@ namespace xIdentityService.Providers
|
||||
Device = device,
|
||||
Payload = userSelectByParam,
|
||||
Action = XOpenActions.GetUserInfo,
|
||||
Timestamp = DateTime.UtcNow.AddMinutes(5)
|
||||
Timestamp = DateTime.UtcNow.AddMinutes(5).ToTimestamp()
|
||||
};
|
||||
if (!opaModel.Validate())
|
||||
{
|
||||
@@ -84,13 +83,13 @@ namespace xIdentityService.Providers
|
||||
// Prepare Rest Request ...
|
||||
var requestU = GetRestRequet(
|
||||
XApiAccountEndpoint.GetUserInfo,
|
||||
@params: new Dictionary<string, string>
|
||||
{
|
||||
{ XParam.XRequest.GetStringValue(), request }
|
||||
},
|
||||
headers: new Dictionary<string, string>
|
||||
{
|
||||
{ XAuthentication.TOKEN, token}
|
||||
},
|
||||
queryStrings: new Dictionary<string, string>
|
||||
{
|
||||
{ XParam.XRequest.GetStringValue(), request }
|
||||
}
|
||||
);
|
||||
|
||||
@@ -125,10 +124,10 @@ namespace xIdentityService.Providers
|
||||
// Retrieve Model and Validate it ...
|
||||
var responseModel = responseJson.FromJSON<XOpenActionRequestDto>();
|
||||
if (responseModel.IsNull() ||
|
||||
responseModel.Timestamp.IsExPired() ||
|
||||
responseModel.Payload.IsNullOrEmpty() ||
|
||||
// !responseModel.Device.IsSameAs(device) ||
|
||||
responseToken != responseModel.Checksum)
|
||||
responseToken != responseModel.Checksum ||
|
||||
responseModel.Timestamp.FromTimestamp().IsExPired())
|
||||
{
|
||||
XException.ActionFailed.Throw();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user