155 lines
4.4 KiB
C++
155 lines
4.4 KiB
C++
<% /*
|
|
$Revision$
|
|
$Id$
|
|
|
|
File: model_fac_sp.inc
|
|
Description:
|
|
Notes:
|
|
*/
|
|
|
|
%>
|
|
<!-- #include file="./model_fac_sp_map.inc" -->
|
|
<%
|
|
function model_fac_sp()
|
|
{
|
|
this.records_name = "identityproviders";
|
|
this.record_name = "identityprovider";
|
|
this.table = "fac_sp";
|
|
this.primary = "fac_sp_key";
|
|
this.autfunction = "WEB_FACFAC";
|
|
this.record_title = L("fac_sp");
|
|
this.records_title = L("fac_sp_m");
|
|
|
|
this.fields = {
|
|
"id": {
|
|
"dbs": "fac_sp_key",
|
|
"label": L("lcl_key"),
|
|
"typ": "key",
|
|
"seq": "fac_s_fac_sp_key"
|
|
},
|
|
"code": {
|
|
"dbs": "fac_sp_code",
|
|
"label": L("fac_sp_code"),
|
|
"typ": "varchar",
|
|
"filter": "exact"
|
|
},
|
|
"name": {
|
|
"dbs": "fac_sp_omschrijving",
|
|
"label": L("fac_sp_omschrijving"),
|
|
"typ": "varchar",
|
|
"required": true
|
|
},
|
|
"type": {
|
|
"dbs": "fac_sp_type",
|
|
"label": L("fac_sp_type"),
|
|
"typ": "key",
|
|
"required": true,
|
|
"LOV": L("fac_aut_typeLOV") // TODO?
|
|
},
|
|
"remark": {
|
|
"dbs": "fac_sp_opmerking",
|
|
"label": L("fac_sp_opmerking"),
|
|
"typ": "memo"
|
|
},
|
|
"secret": {
|
|
"dbs": "fac_sp_secret",
|
|
"label": L("fac_sp_secret"),
|
|
"typ": "varchar",
|
|
"defaultvalue": shared.random(32),
|
|
"secret": true
|
|
},
|
|
"audience": {
|
|
"dbs": "fac_sp_audience",
|
|
"label": L("fac_sp_audience"),
|
|
"typ": "varchar",
|
|
"placeholder": customerId + ".facilitor.nl"
|
|
},
|
|
"issuer": {
|
|
"dbs": "fac_sp_issuer",
|
|
"label": L("fac_sp_issuer"),
|
|
"typ": "varchar"
|
|
},
|
|
"algorithm": {
|
|
"dbs": "fac_sp_algorithm",
|
|
"label": L("fac_sp_algorithm"),
|
|
"typ": "varchar"
|
|
},
|
|
"timeout": {
|
|
"dbs": "fac_sp_clockskew",
|
|
"label": L("fac_sp_clockskew"),
|
|
"typ": "number",
|
|
"defaultvalue": 30
|
|
},
|
|
"duration": {
|
|
"dbs": "fac_sp_duration",
|
|
"label": L("fac_sp_duration"),
|
|
"typ": "number"
|
|
},
|
|
"remoteloginurl": {
|
|
"dbs": "fac_sp_remote_loginurl",
|
|
"label": L("fac_sp_remote_loginurl"),
|
|
"typ": "varchar"
|
|
},
|
|
"remotelogouturl": {
|
|
"dbs": "fac_sp_remote_logouturl",
|
|
"label": L("fac_sp_remote_logouturl"),
|
|
"typ": "varchar"
|
|
},
|
|
"ipfilter": {
|
|
"dbs": "fac_sp_ipfilter",
|
|
"label": L("fac_sp_ipfilter"),
|
|
"typ": "varchar"
|
|
},
|
|
"_currentIP" : {
|
|
"dbs": "",
|
|
"label": "Current IP",
|
|
"typ": "label",
|
|
"labelvalue": String(Request.ServerVariables("REMOTE_ADDR"))
|
|
},
|
|
"ipauto": {
|
|
"dbs": "fac_sp_ipauto",
|
|
"label": L("fac_sp_ipauto"),
|
|
"typ": "check0"
|
|
},
|
|
/*
|
|
"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_sp_functie_key"),
|
|
"typ": "key",
|
|
"foreign": "fac_functie"
|
|
},
|
|
*/
|
|
"internal": {
|
|
"dbs": "fac_sp_internal",
|
|
"label": L("fac_sp_internal"),
|
|
"typ": "check0",
|
|
"readonly": true
|
|
}
|
|
}
|
|
|
|
this.includes =
|
|
{ "spmappings": { model: new model_fac_sp_map(),
|
|
joinfield: "serviceprovider",
|
|
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);
|
|
}
|
|
%> |