Skip to content

Instantly share code, notes, and snippets.

@Wathsara
Created July 31, 2022 07:32
Show Gist options
  • Save Wathsara/772d4ae11241af5235f18f9443210464 to your computer and use it in GitHub Desktop.
Save Wathsara/772d4ae11241af5235f18f9443210464 to your computer and use it in GitHub Desktop.
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