libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit 3a6fe3f528f4f89b240655b138a1f3b4513a0851
parent 7cb084df970fb10e001cf2755960b48406ae4fa5
Author: MS <ms@taler.net>
Date:   Wed, 11 Jan 2023 15:50:51 +0100

accommodating --no-auth

Diffstat:
Msandbox/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 @@ -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 {