Skip to content

Instantly share code, notes, and snippets.

@johnkors
Last active February 3, 2017 15:09
Show Gist options
  • Save johnkors/e057c8c0cbf4f4e60735c516b88a8bc4 to your computer and use it in GitHub Desktop.
Save johnkors/e057c8c0cbf4f4e60735c516b88a8bc4 to your computer and use it in GitHub Desktop.
/core/discourse
[Route("core/discourse")]
[HttpGet]
public async Task<ActionResult> Index(string sso, string sig)
{
if (string.IsNullOrEmpty(sso) || string.IsNullOrEmpty(sig))
{
throw new ArgumentException("Missing input parameters");
}
if (!IsValid(sso, sig))
{
throw new SecurityException("sso sig not valid");
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment