Skip to content

Instantly share code, notes, and snippets.

@khola
Created June 7, 2019 11:16
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 khola/6d85901c7b9a0e5d082322e3f77d5b9b to your computer and use it in GitHub Desktop.
Save khola/6d85901c7b9a0e5d082322e3f77d5b9b to your computer and use it in GitHub Desktop.
#if($context.result["User"] == $context.identity.claims.get("email"))
$util.toJson($context.result);
#else
$util.unauthorized()
#end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment