Created
August 5, 2018 14:14
-
-
Save dimuthnc/09603d6f52a96cfac4303f1796c1aa0d to your computer and use it in GitHub Desktop.
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
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