[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: accommodating --no-auth
From: |
gnunet |
Subject: |
[libeufin] branch master updated: accommodating --no-auth |
Date: |
Wed, 11 Jan 2023 15:52:07 +0100 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new 3a6fe3f5 accommodating --no-auth
3a6fe3f5 is described below
commit 3a6fe3f528f4f89b240655b138a1f3b4513a0851
Author: MS <ms@taler.net>
AuthorDate: Wed Jan 11 15:50:51 2023 +0100
accommodating --no-auth
---
sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
index f514ae60..6bfa80d7 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -1588,7 +1588,7 @@ val sandboxApp: Application.() -> Unit = {
post("/subscribers") {
// Only the admin can create Ebics subscribers.
val user = call.request.basicAuth()
- if (user != "admin") throw forbidden("Only the Admin can
create Ebics subscribers.")
+ if (WITH_AUTH && (user != "admin")) throw forbidden("Only
the Administrator can create Ebics subscribers.")
val body = call.receive<EbicsSubscriberInfo>()
// Create or get the Ebics subscriber that is found.
transaction {
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: accommodating --no-auth,
gnunet <=