[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] 01/02: remove addressed note
From: |
gnunet |
Subject: |
[libeufin] 01/02: remove addressed note |
Date: |
Tue, 13 Dec 2022 20:26:38 +0100 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
commit b8041b128e787dfcdfb4b8edeadb342aedf5c515
Author: MS <ms@taler.net>
AuthorDate: Tue Dec 13 14:45:14 2022 +0100
remove addressed note
---
.../tech/libeufin/sandbox/EbicsProtocolBackend.kt | 11 ++++-------
sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 17 -----------------
2 files changed, 4 insertions(+), 24 deletions(-)
diff --git
a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
index 7a0eb33a..a50d99b2 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
@@ -27,10 +27,7 @@ import io.ktor.request.*
import io.ktor.response.respond
import io.ktor.response.respondText
import io.ktor.util.AttributeKey
-import kotlinx.coroutines.Dispatchers
-import kotlinx.coroutines.withContext
import org.apache.xml.security.binding.xmldsig.RSAKeyValueType
-import org.jetbrains.exposed.exceptions.ExposedSQLException
import org.jetbrains.exposed.sql.*
import org.jetbrains.exposed.sql.SqlExpressionBuilder.eq
import org.jetbrains.exposed.sql.statements.api.ExposedBlob
@@ -287,10 +284,10 @@ fun buildCamtString(
* - Proprietary code of the bank transaction
* - Id of the servicer (Issuer and Code)
*/
- val creationTime = getUTCnow() // FIXME: should this be the payment time?
- val dashedDate = creationTime.toDashedDate()
- val zonedDateTime = creationTime.toZonedString()
- val creationTimeMillis = creationTime.toInstant().toEpochMilli()
+ val camtCreationTime = getUTCnow() // FIXME: should this be the payment
time?
+ val dashedDate = camtCreationTime.toDashedDate()
+ val zonedDateTime = camtCreationTime.toZonedString()
+ val creationTimeMillis = camtCreationTime.toInstant().toEpochMilli()
val messageId = "sandbox-${creationTimeMillis}"
val currency = getDefaultDemobank().currency
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
index cde8e6b4..52d0d86a 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -17,23 +17,6 @@
* <http://www.gnu.org/licenses/>
*/
-
-/*
-General thoughts:
-
- - since sandbox will run on the public internet for the demobank, all
endpoints except
- explicitly public ones should use authentication (basic auth)
- - the authentication should be *very* simple and *not* be part of the
database state.
- instead, a LIBEUFIN_SANDBOX_ADMIN_TOKEN environment variable will be used to
- set the authentication.
-
- - All sandbox will require the ADMIN_TOKEN, except:
- - the /ebicsweb endpoint, because EBICS handles authentication here
- (EBICS subscribers are checked)
- - the /demobank(/...) endpoints (except registration and public accounts),
- because authentication is handled by checking the demobank user
credentials
- */
-
package tech.libeufin.sandbox
import UtilError
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.