Files
Facilitor/APPL/MGT/aut_idp.js
Jos Groot Lipman 06cefb3af5 DJIN#36213 SAML/Authenticatie verbeteringen. Hernoemen fac_idp naar aut_idp
svn path=/Website/trunk/; revision=33445
2017-04-10 13:08:34 +00:00

32 lines
751 B
JavaScript

$(document).ready(function () {
setTimeout("init_aut_idp()", 10);
});
function init_aut_idp()
{
var typ = $("input#type").val();
var fld_hide = "";
var fld_show = "";
switch(typ)
{
case "4": // jwt
{
fld_hide = "samlmetaurl";
break;
}
case "5": // saml
{
fld_hide = "algorithm audience issuer secret timeout duration remoteloginurl remotelogouturl ipfilter ipauto";
break;
}
}
jQuery.each(fld_hide.split(" "), function(i, name) {
$("#" + this).closest("tr").hide();
});
jQuery.each(fld_show.split(" "), function(i, name) {
$("#" + this).closest("tr").show();
});
}