Skip to content

Instantly share code, notes, and snippets.

@dimuthnc
Created August 5, 2018 14:14
Show Gist options
  • Save dimuthnc/09603d6f52a96cfac4303f1796c1aa0d to your computer and use it in GitHub Desktop.
Save dimuthnc/09603d6f52a96cfac4303f1796c1aa0d to your computer and use it in GitHub Desktop.
function onInitialRequest(context) {
executeStep(1, {
onSuccess: function (context) {
var isAllowed = isWithinSessionLimit(context, {"sessionLimit":"2"});
if (isAllowed) {
Log.info('Authentication Successfull ');
}
else {
executeStep(2);
Log.info('Authentication Successfull ');
}
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment