Skip to content

Instantly share code, notes, and snippets.

@xximjasonxx
Last active September 18, 2023 00: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 xximjasonxx/c50540e3766cdf1462fe46c412fb2f1e to your computer and use it in GitHub Desktop.
Save xximjasonxx/c50540e3766cdf1462fe46c412fb2f1e to your computer and use it in GitHub Desktop.
public class HttpReturnUserRolesFunction
{
[FunctionName("HttpReturnUserRoles")]
public IActionResult HttpReturnUserRoles(
[HttpTrigger(AuthorizationLevel.Anonymous, "get", "post", Route = null)] HttpRequest req,
ILogger log)
{
return new OkObjectResult(new {
version = "1.0.0",
action = "Continue",
postalCode = "12349",
extension_Roles = "Admin,User"
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment