libeufin

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

commit 5400afda42a6a48e63e4249c9facad799da830cb
parent 460040f525c46cca3f03aa254660eadc11d404e6
Author: Antoine A <>
Date:   Tue, 26 Nov 2024 00:32:01 +0100

bank: fix auth challenge not being set in password auth compat mode

Diffstat:
Mbank/src/main/kotlin/tech/libeufin/bank/auth/auth.kt | 2+-
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 @@ -163,7 +163,7 @@ private suspend fun ApplicationCall.authenticateBankRequest( // Basic auth challenge if (header == null) { - if (allowPw) { + if (allowPw || compatPw) { response.header(HttpHeaders.WWWAuthenticate, "Basic realm=\"LibEuFin Bank\", charset=\"UTF-8\"") } throw missingAuth()