Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Last active February 4, 2022 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/215a707196840b37b406cfa9a90a3f4e to your computer and use it in GitHub Desktop.
Save bjoerntx/215a707196840b37b406cfa9a90a3f4e to your computer and use it in GitHub Desktop.
[HttpPost]
public IActionResult HandleSignature([FromBody] SignatureData data, string securityToken)
{
ReturnObject returnObject = new ReturnObject();
if (securityToken != "123")
{
return Ok(returnObject);
}
// here, you have access to the signed document and other meta data
var test = data.SignedDocument.Document;
returnObject.Success = true;
returnObject.Id = data.SignedDocument.UniqueId;
return Ok(returnObject);
}
public class ReturnObject
{
public string Id { get; set; }
public bool Success { get; set; } = false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment