mirror of
https://github.com/AskDavis/cyphernode.git
synced 2026-01-02 11:59:47 -08:00
Added tests and group authorization: watcher, spender, admin, internal
This commit is contained in:
29
api_auth_docker/api.properties
Normal file
29
api_auth_docker/api.properties
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
# Watcher can:
|
||||
action_watch=watcher
|
||||
action_unwatch=watcher
|
||||
action_getactivewatches=watcher
|
||||
action_getbestblockhash=watcher
|
||||
action_getbestblockinfo=watcher
|
||||
action_getblockinfo=watcher
|
||||
action_gettransaction=watcher
|
||||
action_ln_getinfo=watcher
|
||||
action_ln_create_invoice=watcher
|
||||
|
||||
# Spender can do what the watcher can do plus:
|
||||
action_getbalance=spender
|
||||
action_getnewaddress=spender
|
||||
action_spend=spender
|
||||
action_addtobatch=spender
|
||||
action_batchspend=spender
|
||||
action_deriveindex=spender
|
||||
action_derivepubpath=spender
|
||||
action_ln_pay=spender
|
||||
action_ln_newaddr=spender
|
||||
|
||||
# Admin can do what the spender can do plus:
|
||||
|
||||
|
||||
# Should be called from inside the Swarm:
|
||||
action_conf=internal
|
||||
action_executecallbacks=internal
|
||||
Reference in New Issue
Block a user