commit 6ea6a9ae8ed3535bddb8c11b15dc9ebc6f68aec1
parent 2b04785c589a5e0255cae208bb167ae398efa559
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Thu, 21 Jul 2022 09:06:15 +0200
allow credentials override also for /instances/default paths
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git 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) &&