commit 77ccb623cc37f0e2e386c36255bf5096505ae17f
parent d62c574bea9f6738f8db21c6dde7253a25be684c
Author: ms <ms@taler.net>
Date: Fri, 17 Sep 2021 16:45:25 +0200
api token != password
Diffstat:
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/bin/taler-deployment b/bin/taler-deployment
@@ -104,6 +104,10 @@ currmap = {
def generate_apitoken():
return "secret-token:" + ''.join(random.choices(ascii_letters + ascii_uppercase, k=10))
+def generate_password():
+ return ''.join(random.choices(ascii_letters + ascii_uppercase, k=10))
+
+
def update_checkout(r: Repo, p: Path):
"""Clean the repository's working directory and
update it to the match the latest version of the upstream branch
@@ -705,7 +709,7 @@ def bootstrap() -> None:
sandbox_admin_password_file = Path.home() / "libeufin_admin_password"
if not sandbox_admin_password_file.is_file():
with sandbox_admin_password_file.open("w") as f:
- f.write(generate_apitoken())
+ f.write(generate_password())
print(f"Libeufin Sandbox admin password file '{sandbox_admin_password_file}' created.")
with (home / "activate").open("w") as f:
diff --git a/bin/taler-deployment-prepare-with-eufin b/bin/taler-deployment-prepare-with-eufin
@@ -168,7 +168,8 @@ sleep 5
##
## Step 4: Set up euFin
##
-
+export LIBEUFIN_SANDBOX_USERNAME="admin"
+export LIBEUFIN_SANDBOX_PASSWORD=${LIBEUFIN_ENV_SANDBOX_ADMIN_PASSWORD}
# $1 = ebics user id, $2 = ebics partner, $3 = bank connection name
# $4 = bank account name local to Nexus, $5 = bank account name as known
# by Sandbox
@@ -220,8 +221,7 @@ function prepare_sandbox_account() {
NEXUS_URL="http://localhost:5222/"
SANDBOX_URL="http://localhost:5111/"
-# Deleting old data:
-
+libeufin-sandbox superuser admin --password=${LIBEUFIN_ENV_SANDBOX_ADMIN_PASSWORD}
taler-deployment-arm -i libeufin-nexus
taler-deployment-arm -i libeufin-sandbox