policy.json revision ca67694845f39bb124ebac5d8d9722d71116a0c4
0N/A{
2362N/A "type" : "text/javascript",
0N/A "file" : "bin/defaults/script/policy.js",
0N/A "resources" : [
0N/A {
0N/A "resource" : "managed/user/*",
0N/A "properties" : [
0N/A {
0N/A "name" : "_id",
0N/A "policies" : [
0N/A {
0N/A "policyId" : "cannot-contain-characters",
0N/A "params" : {
0N/A "forbiddenChars" : ["/"]
0N/A }
0N/A }
0N/A ]
0N/A },
2362N/A {
2362N/A "name" : "userName",
2362N/A "policies" : [
0N/A {
0N/A "policyId" : "required"
0N/A },
0N/A {
0N/A "policyId" : "not-empty"
0N/A },
0N/A {
0N/A "policyId" : "unique"
0N/A },
0N/A {
0N/A "policyId" : "no-internal-user-conflict"
0N/A },
0N/A {
0N/A "policyId" : "cannot-contain-characters",
0N/A "params" : {
"forbiddenChars" : ["/"]
}
}
]
},
{
"name" : "password",
"policies" : [
{
"policyId" : "not-empty"
},
{
"policyId" : "at-least-X-capitals",
"params" : {
"numCaps" : 1
}
},
{
"policyId" : "at-least-X-numbers",
"params" : {
"numNums" : 1
}
},
{
"policyId" : "minimum-length",
"params" : {
"minLength" : 8
}
},
{
"policyId" : "cannot-contain-others",
"params" : {
"disallowedFields" : "userName,givenName,familyName"
}
},
{
"policyId" : "re-auth-required",
"params" : {
"exceptRoles" : [
"openidm-admin",
"openidm-reg"
]
}
}
]
},
{
"name" : "email",
"policies" : [
{
"policyId" : "required"
},
{
"policyId" : "not-empty"
},
{
"policyId" : "valid-email-address-format"
}
]
},
{
"name" : "givenName",
"policies" : [
{
"policyId" : "required"
},
{
"policyId" : "not-empty"
},
{
"policyId" : "valid-name-format"
}
]
},
{
"name" : "familyName",
"policies" : [
{
"policyId" : "required"
},
{
"policyId" : "not-empty"
},
{
"policyId" : "valid-name-format"
}
]
},
{
"name" : "phoneNumber",
"policies" : [
{
"policyId" : "required"
},
{
"policyId" : "not-empty"
},
{
"policyId" : "valid-phone-format"
}
]
},
{
"name" : "securityQuestion",
"policies" : [
{
"policyId" : "required-if-configured",
"params" : {
"configBase" : "ui/configuration",
"baseKey" : "configuration.securityQuestions",
"exceptRoles" : [
"openidm-admin"
]
}
}
]
},
{
"name" : "securityAnswer",
"policies" : [
{
"policyId" : "required-if-configured",
"params" : {
"configBase" : "ui/configuration",
"baseKey" : "configuration.securityQuestions",
"exceptRoles" : [
"openidm-admin"
]
}
},
{
"policyId" : "minimum-length",
"params" : {
"minLength" : 16
}
},
{
"policyId" : "re-auth-required",
"params" : {
"exceptRoles" : [
"openidm-admin",
"openidm-reg"
]
}
}
]
},
{
"name" : "securityAnswerAttempts",
"policies" : [
{
"policyId" : "max-attempts-triggers-lock-cooldown",
"params" : {
"max" : 3,
"numMinutes" : 15,
"dateTimeField" : "lastSecurityAnswerAttempt"
}
}
]
},
{
"name" : "lastSecurityAnswerAttempt",
"policies" : [
{
"policyId" : "valid-date"
}
]
},
{
"name" : "passPhrase",
"policies" : [
{
"policyId" : "minimum-length",
"params" : {
"minLength" : 4
}
},
{
"policyId" : "required-if-configured",
"params" : {
"configBase" : "ui/configuration",
"baseKey" : "configuration.siteIdentification",
"exceptRoles" : [
"openidm-admin"
]
}
}
]
}
]
},
{
"resource" : "repo/internal/user/*",
"properties" : [
{
"name" : "_id",
"policies" : [
{
"policyId" : "cannot-contain-characters",
"params" : {
"forbiddenChars" : ["/"]
}
}
]
},
{
"name" : "password",
"policies" : [
{
"policyId" : "required"
},
{
"policyId" : "not-empty"
},
{
"policyId" : "at-least-X-capitals",
"params" : {
"numCaps" : 1
}
},
{
"policyId" : "at-least-X-numbers",
"params" : {
"numNums" : 1
}
},
{
"policyId" : "minimum-length",
"params" : {
"minLength" : 8
}
}
]
}
]
}
]
}