<% /* $Revision$ $Id$ File: model_fac_idp.inc Description: Notes: Documentatie in de wiki onder Authenticeren */ %> <% function fac_idp() { this.records_name = "identityproviders"; this.record_name = "identityprovider"; this.table = "fac_idp"; this.primary = "fac_idp_key"; this.autfunction = "WEB_FACFAC"; this.record_title = L("fac_idp"); this.records_title = L("fac_idp_m"); this.askfirst = "type"; this.fields = { "id": { "dbs": "fac_idp_key", "label": L("lcl_key"), "typ": "key", "seq": "fac_s_fac_idp_key" }, "code": { "dbs": "fac_idp_code", "label": L("fac_idp_code"), "typ": "varchar" }, "name": { "dbs": "fac_idp_omschrijving", "label": L("fac_idp_omschrijving"), "typ": "varchar", "required": true }, "type": { "dbs": "fac_idp_type", "label": L("fac_idp_type"), "typ": "key", "required": true, "insertonly": true, "LOV": L("fac_idp_typeLOV") }, "remark": { "dbs": "fac_idp_opmerking", "label": L("fac_idp_opmerking"), "typ": "memo" }, "secret": { "dbs": "fac_idp_secret", "label": L("fac_idp_secret"), "typ": "varchar", "defaultvalue": shared.random(32), "secret": true }, "audience": { "dbs": "fac_idp_audience", "label": L("fac_idp_audience"), "typ": "varchar", "placeholder": customerId + ".facilitor.nl" }, "issuer": { "dbs": "fac_idp_issuer", "label": L("fac_idp_issuer"), "typ": "varchar" }, "algorithm": { "dbs": "fac_idp_algorithm", "label": L("fac_idp_algorithm"), "typ": "varchar" }, "timeout": { "dbs": "fac_idp_clockskew", "label": L("fac_idp_clockskew"), "typ": "number", "defaultvalue": 30 }, "duration": { "dbs": "fac_idp_duration", "label": L("fac_idp_duration"), "typ": "number" }, "remoteloginurl": { "dbs": "fac_idp_remote_loginurl", "label": L("fac_idp_remote_loginurl"), "typ": "varchar" }, "remotelogouturl": { "dbs": "fac_idp_remote_logouturl", "label": L("fac_idp_remote_logouturl"), "typ": "varchar" }, "ipfilter": { "dbs": "fac_idp_ipfilter", "label": L("fac_idp_ipfilter"), "typ": "varchar" }, "_currentIP" : { "dbs": "", "label": "Current IP", "typ": "label", "labelvalue": String(Request.ServerVariables("REMOTE_ADDR")) }, "ipauto": { "dbs": "fac_idp_ipauto", "label": L("fac_idp_ipauto"), "typ": "check0" }, "autocreate": { "dbs": "fac_idp_autocreate", "label": L("fac_idp_autocreate"), "typ": "key", "required": "true", "LOV": "0;Weigeren bij onbekend;1;Aanmaken;2;Alleen bijwerken;3;Aanmaken en bijwerken" ///L("fac_idp_autocreateLOV") }, "company": { "dbs": "prs_bedrijf_key", "typ": "key", "foreign": "prs_bedrijf", "label": L("lcl_idp_company") }, "department": { "dbs": "prs_afdeling_key", "typ": "key", "foreign": "prs_afdeling", "label": L("lcl_idp_department") }, /* "authorization": { "dbs": "fac_functie_key", "label": L("fac_idp_functie_key"), "typ": "key", "foreign": "fac_functie" }, */ "internal": { "dbs": "fac_idp_internal", "label": L("fac_idp_internal"), "typ": "check0", "readonly": true } } this.includes = {"idpmappings": { model: new model_fac_idp_map(), joinfield: "identityprovider", enable_update: true } }; this.REST_GET = generic_REST_GET(this); this.REST_POST = generic_REST_POST(this); this.REST_PUT = generic_REST_PUT(this); this.REST_DELETE = generic_REST_DELETE(this); } %>