UWVA#53857 SSO (via SAML) kunnen beperken tot een autorisatiegroep

svn path=/Website/branches/v2018.1/; revision=38827
This commit is contained in:
Jos Groot Lipman
2018-08-15 16:00:17 +00:00
parent 139b951fbc
commit de8fc60d08
2 changed files with 9 additions and 2 deletions

View File

@@ -146,13 +146,12 @@ function model_aut_idp(params)
"foreign": "prs_afdeling",
"label": L("lcl_idp_department")
},
/* "authorization": {
"authorization": {
"dbs": "fac_functie_key",
"label": L("aut_idp_functie_key"),
"typ": "key",
"foreign": "fac_functie"
},
*/
"loglevel": {
"dbs": "aut_idp_loglevel",
"label": L("aut_idp_loglevel"),

View File

@@ -1163,7 +1163,15 @@ function process_claim(claim, idp_data, params)
shared.auditfail(L("lcl_autfai_loginnotfound").format(idpm.name.name, idpm.from, claim[idpm.from]));
}
else
{
if (idp_data.authorization.id > 0 && !user.has(idp_data.authorization.id))
{
doLogoff();
shared.simpel_page(L("lcl_no_auth"))
}
break; // ingelogd, niet verder zoeken
}
}
if (!hasIdentify)
shared.internal_error("IdP {0} has no identifying attribute defined.".format(idp_data.code));