improving description
"code": [
"// This script will step up authentication for any user belong",
"// to one of the given groups.",
- "// If the user has any of the below groups, authentication will be stepped up",
+ "// If the user is a member in the following groups, authentication will be stepped up",
"var groupsToStepUp = ['manager','employee'];",
"",
"var onLoginRequest = function(context) {",
" // Extracting authenticated subject from the first step.",
" var user = context.currentKnownSubject;",
" // Checking if the user is assigned to one of the given groups.",
- " var hasGroup = hasAnyOfTheGroups(user, groupsToStepUp);",
- " if (hasGroup) {",
- " Log.info(user.username + ' Has one of groups: ' + groupsToStepUp.toString());",
+ " var isMember = isMemberOfAnyOfGroups(user, groupsToStepUp);",
+ " if (isMember) {",
+ " Log.info(user.username + ' is a member of one of the groups: ' + groupsToStepUp.toString());",
" executeStep(2);",
" }",
" }",
