2014-10-10 09:53:22 +00:00
|
|
|
{
|
|
|
|
"name": "User",
|
|
|
|
"properties": {
|
|
|
|
"realm": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"username": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"password": {
|
|
|
|
"type": "string",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"credentials": {
|
|
|
|
"type": "object",
|
|
|
|
"deprecated": true
|
|
|
|
},
|
|
|
|
"challenges": {
|
|
|
|
"type": "object",
|
|
|
|
"deprecated": true
|
|
|
|
},
|
|
|
|
"email": {
|
|
|
|
"type": "string",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"emailVerified": "boolean",
|
|
|
|
"verificationToken": "string",
|
|
|
|
"status": "string",
|
|
|
|
"created": "date",
|
|
|
|
"lastUpdated": "date"
|
|
|
|
},
|
|
|
|
"hidden": ["password"],
|
|
|
|
"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",
|
|
|
|
"property": "updateAttributes"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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",
|
|
|
|
"foreignKey": "userId"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|