[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: Stop limiting token duration.
From: |
gnunet |
Subject: |
[libeufin] branch master updated: Stop limiting token duration. |
Date: |
Mon, 25 Sep 2023 21:24:56 +0200 |
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 466aef4b Stop limiting token duration.
466aef4b is described below
commit 466aef4be5a216b58b95ab251912f53b7d54a7d5
Author: MS <ms@taler.net>
AuthorDate: Mon Sep 25 21:24:34 2023 +0200
Stop limiting token duration.
---
bank/src/main/kotlin/tech/libeufin/bank/CorebankApiHandlers.kt | 5 -----
bank/src/main/kotlin/tech/libeufin/bank/Main.kt | 5 -----
bank/src/test/kotlin/Common.kt | 1 -
contrib/wallet-core | 2 +-
4 files changed, 1 insertion(+), 12 deletions(-)
diff --git a/bank/src/main/kotlin/tech/libeufin/bank/CorebankApiHandlers.kt
b/bank/src/main/kotlin/tech/libeufin/bank/CorebankApiHandlers.kt
index 378b1c1b..a523b291 100644
--- a/bank/src/main/kotlin/tech/libeufin/bank/CorebankApiHandlers.kt
+++ b/bank/src/main/kotlin/tech/libeufin/bank/CorebankApiHandlers.kt
@@ -50,11 +50,6 @@ fun Routing.accountsMgmtHandlers(db: Database, ctx:
BankApplicationContext) {
val tokenBytes = ByteArray(32).apply {
Random().nextBytes(this)
}
- val maxDurationTime: Long = ctx.maxAuthTokenDurationUs
- if (req.duration != null && req.duration.d_us > maxDurationTime) throw
forbidden(
- "Token duration bigger than bank's limit", // FIXME: define new EC
for this case.
- TalerErrorCode.TALER_EC_END
- )
val tokenDurationUs = req.duration?.d_us ?: TOKEN_DEFAULT_DURATION_US
val customerDbRow = customer.dbRowId ?: throw internalServerError(
"Could not get customer '${customer.login}' database row ID"
diff --git a/bank/src/main/kotlin/tech/libeufin/bank/Main.kt
b/bank/src/main/kotlin/tech/libeufin/bank/Main.kt
index 09da3cd8..4273d01d 100644
--- a/bank/src/main/kotlin/tech/libeufin/bank/Main.kt
+++ b/bank/src/main/kotlin/tech/libeufin/bank/Main.kt
@@ -101,10 +101,6 @@ data class BankApplicationContext(
* Exchange that the bank suggests to wallets for withdrawal.
*/
val suggestedWithdrawalExchange: String?,
- /**
- * Max token duration in microseconds.
- */
- val maxAuthTokenDurationUs: Long,
/**
* URL where the user should be redirected to complete the captcha.
* It can contain the substring "{woid}" that is going to be replaced
@@ -379,7 +375,6 @@ fun readBankApplicationContextFromConfig(cfg: TalerConfig):
BankApplicationConte
registrationBonus = cfg.requireValueAmount("libeufin-bank",
"registration_bonus", currency),
suggestedWithdrawalExchange = cfg.lookupValueString("libeufin-bank",
"suggested_withdrawal_exchange"),
defaultAdminDebtLimit = cfg.requireValueAmount("libeufin-bank",
"default_admin_debt_limit", currency),
- maxAuthTokenDurationUs = cfg.requireValueDuration("libeufin-bank",
"max_auth_token_duration"),
spaCaptchaURL = cfg.lookupValueString("libeufin-bank",
"spa_captcha_url"),
)
}
diff --git a/bank/src/test/kotlin/Common.kt b/bank/src/test/kotlin/Common.kt
index ad65c14a..29fd01c0 100644
--- a/bank/src/test/kotlin/Common.kt
+++ b/bank/src/test/kotlin/Common.kt
@@ -45,7 +45,6 @@ fun getTestContext(
registrationBonusEnabled = false,
registrationBonus = null,
suggestedWithdrawalExchange = suggestedExchange,
- maxAuthTokenDurationUs = 200 * 1000000,
spaCaptchaURL = null,
)
}
\ No newline at end of file
diff --git a/contrib/wallet-core b/contrib/wallet-core
index 9e2d95b3..c5a3cd4c 160000
--- a/contrib/wallet-core
+++ b/contrib/wallet-core
@@ -1 +1 @@
-Subproject commit 9e2d95b39723a038eb714d723ac0910a5bf596e2
+Subproject commit c5a3cd4c50676c49fa6c67cbdeb609101c38e764
--
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: Stop limiting token duration.,
gnunet <=