public async Task <JsonResult> StatusFromAlmostAdmin([FromForm] string data, [FromForm] string signature) { //string answerJson; var decodedData = CryptoUtils.Base64Decode(data); var questionToApi = JsonConvert.DeserializeObject <AnswerOnStatusUrl>(decodedData); if (!AlmostAdminClient.ValidateSignature(data, signature, "b8ac8f1f-f035-4cd6-9a53-0b3c21dede55")) { return(Json("Signature is not valid.")); } return(Json("*OK*")); // TODO: CHECK THIS VALUE }
public JsonResult StatusFromAlmostAdmin([FromForm] string data, [FromForm] string signature) { if (!AlmostAdminClient.ValidateSignature(data, signature, projectPrivateKey)) { return(Json("Signature is not valid.")); } //string answerJson; var decodedData = CryptoUtils.Base64Decode(data); //var questionToApi = JsonConvert.DeserializeObject<AnswerOnStatusUrl>(decodedData); //var t = JsonConvert.SerializeObject(decodedData); _dataStorage.totalLogList.Add(decodedData); return(Json("*OK*")); // TODO: CHECK THIS VALUE }