Created
July 31, 2022 07:32
-
-
Save Wathsara/772d4ae11241af5235f18f9443210464 to your computer and use it in GitHub Desktop.
This file contains 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
var onLoginRequest = function(context) { | |
executeStep(1, { | |
onSuccess: function(context) { | |
// Extracting user store domain of authenticated subject from the first step | |
var userStoreDomain = context.currentKnownSubject.userStoreDomain; | |
// Execute second step if the user is from MY-REMOTE-USERSTORE user store. | |
if (userStoreDomain === 'MY-REMOTE-USERSTORE') { | |
executeStep(2); | |
} | |
} | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment