Skip to content

Commit

Permalink
Merge pull request wso2#5700 from brionmario/post-is7-fixes-22370
Browse files Browse the repository at this point in the history
Enable the conditional script on adaptive script select
  • Loading branch information
brionmario authored Mar 7, 2024
2 parents 2886b14 + ff750e1 commit 549f229
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/angry-kings-train.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/console": patch
---

Enable the conditional script on adaptive script select
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ const PredefinedFlowsSidePanel: FunctionComponent<PredefinedFlowsSidePanelPropsI
adaptiveAuthTemplates,
authenticators,
defaultAuthenticationSequence,
updateAuthenticationSequence
updateAuthenticationSequence,
onConditionalAuthenticationToggle
} = useAuthenticationFlow();

const authenticatorsMeta: GenericAuthenticatorInterface[] = Object.values(
Expand Down Expand Up @@ -702,6 +703,9 @@ const PredefinedFlowsSidePanel: FunctionComponent<PredefinedFlowsSidePanelPropsI
};
}

// Since the adaptive auth templates contains a script,
// need to enable the toggle. Else the script will be ignored on update.
onConditionalAuthenticationToggle(true);
updateAuthenticationSequence(newSequence);
};

Expand Down

0 comments on commit 549f229

Please sign in to comment.