Add wallet_password param for NeofsAuthmateSecret
Signed-off-by: Vladimir Avdeev <v.avdeev@yadro.com>
This commit is contained in:
parent
520cfe3bba
commit
8b9706e777
1 changed files with 8 additions and 2 deletions
|
@ -8,6 +8,7 @@ class NeofsAuthmateSecret(CliCommand):
|
||||||
def obtain(
|
def obtain(
|
||||||
self,
|
self,
|
||||||
wallet: str,
|
wallet: str,
|
||||||
|
wallet_password: str,
|
||||||
peer: str,
|
peer: str,
|
||||||
gate_wallet: str,
|
gate_wallet: str,
|
||||||
access_key_id: str,
|
access_key_id: str,
|
||||||
|
@ -18,6 +19,7 @@ class NeofsAuthmateSecret(CliCommand):
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
wallet: Path to the wallet.
|
wallet: Path to the wallet.
|
||||||
|
wallet_password: Wallet password.
|
||||||
address: Address of wallet account.
|
address: Address of wallet account.
|
||||||
peer: Address of neofs peer to connect to.
|
peer: Address of neofs peer to connect to.
|
||||||
gate_wallet: Path to the wallet.
|
gate_wallet: Path to the wallet.
|
||||||
|
@ -27,8 +29,9 @@ class NeofsAuthmateSecret(CliCommand):
|
||||||
Returns:
|
Returns:
|
||||||
Command's result.
|
Command's result.
|
||||||
"""
|
"""
|
||||||
return self._execute(
|
return self._execute_with_password(
|
||||||
"obtain-secret",
|
"obtain-secret",
|
||||||
|
wallet_password,
|
||||||
**{
|
**{
|
||||||
param: param_value
|
param: param_value
|
||||||
for param, param_value in locals().items()
|
for param, param_value in locals().items()
|
||||||
|
@ -39,6 +42,7 @@ class NeofsAuthmateSecret(CliCommand):
|
||||||
def issue(
|
def issue(
|
||||||
self,
|
self,
|
||||||
wallet: str,
|
wallet: str,
|
||||||
|
wallet_password: str,
|
||||||
peer: str,
|
peer: str,
|
||||||
bearer_rules: str,
|
bearer_rules: str,
|
||||||
gate_public_key: str,
|
gate_public_key: str,
|
||||||
|
@ -55,6 +59,7 @@ class NeofsAuthmateSecret(CliCommand):
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
wallet: Path to the wallet.
|
wallet: Path to the wallet.
|
||||||
|
wallet_password: Wallet password.
|
||||||
address: Address of wallet account.
|
address: Address of wallet account.
|
||||||
peer: Address of a neofs peer to connect to.
|
peer: Address of a neofs peer to connect to.
|
||||||
bearer_rules: Rules for bearer token as plain json string.
|
bearer_rules: Rules for bearer token as plain json string.
|
||||||
|
@ -75,8 +80,9 @@ class NeofsAuthmateSecret(CliCommand):
|
||||||
Returns:
|
Returns:
|
||||||
Command's result.
|
Command's result.
|
||||||
"""
|
"""
|
||||||
return self._execute(
|
return self._execute_with_password(
|
||||||
"issue-secret",
|
"issue-secret",
|
||||||
|
wallet_password,
|
||||||
**{
|
**{
|
||||||
param: param_value
|
param: param_value
|
||||||
for param, param_value in locals().items()
|
for param, param_value in locals().items()
|
||||||
|
|
Loading…
Reference in a new issue