2014-10-13 08:23:35 +00:00
|
|
|
{
|
|
|
|
"name": "AccessToken",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string",
|
|
|
|
"id": true
|
|
|
|
},
|
|
|
|
"ttl": {
|
|
|
|
"type": "number",
|
|
|
|
"ttl": true,
|
|
|
|
"default": 1209600,
|
|
|
|
"description": "time to live in seconds (2 weeks by default)"
|
|
|
|
},
|
2017-03-27 12:58:01 +00:00
|
|
|
"scopes": {
|
|
|
|
"type": ["string"],
|
|
|
|
"description": "Array of scopes granted to this access token."
|
|
|
|
},
|
2014-10-13 08:23:35 +00:00
|
|
|
"created": {
|
2016-11-23 01:54:08 +00:00
|
|
|
"type": "Date",
|
|
|
|
"defaultFn": "now"
|
2014-10-13 08:23:35 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"user": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "User",
|
|
|
|
"foreignKey": "userId"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"acls": [
|
|
|
|
{
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
|
|
|
"permission": "DENY"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|