Last active
February 3, 2017 15:09
-
-
Save johnkors/e057c8c0cbf4f4e60735c516b88a8bc4 to your computer and use it in GitHub Desktop.
/core/discourse
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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