2014-10-10 09:53:22 +00:00
|
|
|
{
|
|
|
|
"name": "User",
|
|
|
|
"properties": {
|
|
|
|
"realm": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"username": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"password": {
|
|
|
|
"type": "string",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"email": {
|
|
|
|
"type": "string",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"emailVerified": "boolean",
|
2016-05-05 18:13:38 +00:00
|
|
|
"verificationToken": "string"
|
2014-10-10 09:53:22 +00:00
|
|
|
},
|
2015-11-09 21:21:38 +00:00
|
|
|
"options": {
|
|
|
|
"caseSensitiveEmail": true
|
|
|
|
},
|
2015-12-03 09:56:32 +00:00
|
|
|
"hidden": ["password", "verificationToken"],
|
2014-10-10 09:53:22 +00:00
|
|
|
"acls": [
|
|
|
|
{
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
|
|
|
"permission": "DENY"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
|
|
|
"permission": "ALLOW",
|
|
|
|
"property": "create"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$owner",
|
|
|
|
"permission": "ALLOW",
|
|
|
|
"property": "deleteById"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
|
|
|
"permission": "ALLOW",
|
|
|
|
"property": "login"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
|
|
|
"permission": "ALLOW",
|
|
|
|
"property": "logout"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$owner",
|
|
|
|
"permission": "ALLOW",
|
|
|
|
"property": "findById"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$owner",
|
|
|
|
"permission": "ALLOW",
|
2016-07-26 12:10:13 +00:00
|
|
|
"property": "patchAttributes"
|
2014-10-10 09:53:22 +00:00
|
|
|
},
|
2016-05-09 19:24:03 +00:00
|
|
|
{
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$owner",
|
|
|
|
"permission": "ALLOW",
|
|
|
|
"property": "replaceById"
|
2016-07-26 12:10:13 +00:00
|
|
|
},
|
2014-10-10 09:53:22 +00:00
|
|
|
{
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
2014-10-23 11:16:53 +00:00
|
|
|
"permission": "ALLOW",
|
2014-10-10 09:53:22 +00:00
|
|
|
"property": "confirm"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
|
|
|
"permission": "ALLOW",
|
|
|
|
"property": "resetPassword",
|
|
|
|
"accessType": "EXECUTE"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"relations": {
|
|
|
|
"accessTokens": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "AccessToken",
|
2015-04-20 18:44:07 +00:00
|
|
|
"foreignKey": "userId",
|
|
|
|
"options": {
|
|
|
|
"disableInclude": true
|
|
|
|
}
|
2014-10-10 09:53:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|