Improve conditional authentication enable configuration
@@ -817,7 +817,8 @@ var conditionalAuthFunctions = $.parseJSON('<%=availableJsFunctionsJson%>');
<input id="enableScript" name="enableScript" type="checkbox" value="true" <%
if (appBean.getServiceProvider().getLocalAndOutBoundAuthenticationConfig() != null) {
if (appBean.getServiceProvider().getLocalAndOutBoundAuthenticationConfig().getAuthenticationScriptConfig() != null) {
- if (appBean.getServiceProvider().getLocalAndOutBoundAuthenticationConfig().getAuthenticationScriptConfig().getEnabled()) { %>
+ if (appBean.getServiceProvider().getLocalAndOutBoundAuthenticationConfig()
+ .getAuthenticationScriptConfig().getEnabled() && isConditionalAuthenticationEnabled) { %>
checked="checked" <% }
}
}%>/> Enable Script Based Conditional Authentication
