commit 9b9db0eb58f16fea18f35f221e81a58e90aeca54
parent ff9452aea81692023d6429a688d1e9af992f312a
Author: Antoine A <>
Date: Wed, 18 Sep 2024 16:31:58 +0200
bank: fix basic auth challenge
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bank/src/main/kotlin/tech/libeufin/bank/auth/auth.kt b/bank/src/main/kotlin/tech/libeufin/bank/auth/auth.kt
@@ -115,7 +115,7 @@ private suspend fun ApplicationCall.authenticateBankRequest(db: Database, pwCryp
// Basic auth challenge
if (header == null) {
- response.header(HttpHeaders.WWWAuthenticate, "Basic")
+ response.header(HttpHeaders.WWWAuthenticate, "Basic realm=\"LibEuFin Bank\", charset=\"UTF-8\"")
throw unauthorized(
"Authorization header not found",
TalerErrorCode.GENERIC_PARAMETER_MISSING