[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant] branch master updated: allow credentials override also
From: |
gnunet |
Subject: |
[taler-merchant] branch master updated: allow credentials override also for /instances/default paths |
Date: |
Thu, 21 Jul 2022 09:06:21 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new 6ea6a9ae allow credentials override also for /instances/default paths
6ea6a9ae is described below
commit 6ea6a9ae8ed3535bddb8c11b15dc9ebc6f68aec1
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Thu Jul 21 09:06:15 2022 +0200
allow credentials override also for /instances/default paths
---
contrib/merchant-backoffice | 2 +-
src/backend/taler-merchant-httpd.c | 6 +++++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/contrib/merchant-backoffice b/contrib/merchant-backoffice
index 1d7ee55e..182cdfff 160000
--- a/contrib/merchant-backoffice
+++ b/contrib/merchant-backoffice
@@ -1 +1 @@
-Subproject commit 1d7ee55ea115b91687c203a8f084ea852867b1f0
+Subproject commit 182cdfffa1d4b6f2bb3543d30cfa7509e73bda03
diff --git a/src/backend/taler-merchant-httpd.c
b/src/backend/taler-merchant-httpd.c
index d4d8bc11..94213556 100644
--- a/src/backend/taler-merchant-httpd.c
+++ b/src/backend/taler-merchant-httpd.c
@@ -1424,7 +1424,11 @@ url_handler (void *cls,
&hc->instance->auth.auth_salt,
&hc->instance->auth.auth_hash));
else /* Are the credentials provided OK for CLI override? */
- auth_ok |= ( (use_default) &&
+ auth_ok |= ( (use_default ||
+ /* also allow default credentials if
+ accessed via /instances/default/ */
+ (0 == strcmp ("default",
+ hc->instance->settings.id))) &&
(NULL != TMH_default_auth) &&
(NULL != auth) &&
(! auth_malformed) &&
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-merchant] branch master updated: allow credentials override also for /instances/default paths,
gnunet <=