status-go/services/permissions
Anthony Laibe 9c16cedb1e
feat: add address to permission (#2571)
2022-03-14 13:38:12 +01:00
..
README.md Permissions api (#1524) 2019-07-21 08:41:30 +03:00
api.go feat: add address to permission (#2571) 2022-03-14 13:38:12 +01:00
api_test.go feat: add address to permission (#2571) 2022-03-14 13:38:12 +01:00
database.go feat: add address to permission (#2571) 2022-03-14 13:38:12 +01:00
service.go Fix some tests and restore private/public RPC client 2021-07-20 10:57:38 +02:00

README.md

Dapps permissions service

To enable:

{
  "PermissionsConfig": {
    "Enabled": true,
  },
  APIModules: "permissions"
}

API

permissions_addDappPermissions

Stores provided permissions for dapp. On update replaces previous version of the object.

{
  "dapp": "first",
  "permissions": [
    "r",
    "x"
  ]
}

permissions_getDappPermissions

Returns all permissions for dapps. Order is not deterministic.

permissions_deleteDappPermissions

Delete dapp by a name.