44 lines
832 B
JSON
44 lines
832 B
JSON
{
|
|
"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)"
|
|
},
|
|
"scopes": {
|
|
"type": ["string"],
|
|
"description": "Array of scopes granted to this access token."
|
|
},
|
|
"created": {
|
|
"type": "Date",
|
|
"defaultFn": "now"
|
|
}
|
|
},
|
|
"relations": {
|
|
"user": {
|
|
"type": "belongsTo",
|
|
"model": "User",
|
|
"foreignKey": "userId"
|
|
}
|
|
},
|
|
"acls": [
|
|
{
|
|
"principalType": "ROLE",
|
|
"principalId": "$everyone",
|
|
"permission": "DENY"
|
|
},
|
|
{
|
|
"principalType": "ROLE",
|
|
"principalId": "$everyone",
|
|
"property": "create",
|
|
"permission": "ALLOW"
|
|
}
|
|
]
|
|
}
|