mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 06:12:55 +00:00
9723b64827
* Add permissions api * Integrate permissions service * Reduce cyclomatic complexity of the MakeNode function
38 lines
536 B
Markdown
38 lines
536 B
Markdown
Dapps permissions service
|
|
=========================
|
|
|
|
To enable:
|
|
|
|
```json
|
|
{
|
|
"PermissionsConfig": {
|
|
"Enabled": true,
|
|
},
|
|
APIModules: "permissions"
|
|
}
|
|
```
|
|
|
|
API
|
|
---
|
|
|
|
#### permissions_addDappPermissions
|
|
|
|
Stores provided permissions for dapp. On update replaces previous version of the object.
|
|
|
|
```json
|
|
{
|
|
"dapp": "first",
|
|
"permissions": [
|
|
"r",
|
|
"x"
|
|
]
|
|
}
|
|
```
|
|
|
|
#### permissions_getDappPermissions
|
|
|
|
Returns all permissions for dapps. Order is not deterministic.
|
|
|
|
#### permissions_deleteDappPermissions
|
|
|
|
Delete dapp by a name. |