gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated (63e7e02c -> 6b57f220)


From: gnunet
Subject: [libeufin] branch master updated (63e7e02c -> 6b57f220)
Date: Mon, 25 Sep 2023 14:18:12 +0200

This is an automated email from the git hooks/post-receive script.

sebasjm pushed a change to branch master
in repository libeufin.

    from 63e7e02c Fixing comments.
     new 1e4b1785 comment
     new 6b57f220 rfc8959

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 bank/src/main/kotlin/tech/libeufin/bank/Main.kt    | 5 ++++-
 bank/src/main/kotlin/tech/libeufin/bank/helpers.kt | 6 +++---
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/bank/src/main/kotlin/tech/libeufin/bank/Main.kt 
b/bank/src/main/kotlin/tech/libeufin/bank/Main.kt
index 33f3dc7e..b6e1fc6d 100644
--- a/bank/src/main/kotlin/tech/libeufin/bank/Main.kt
+++ b/bank/src/main/kotlin/tech/libeufin/bank/Main.kt
@@ -105,7 +105,10 @@ data class BankApplicationContext(
      */
     val maxAuthTokenDurationUs: Long,
     /**
-     * FIXME/TBD.
+     * URL where the user should be redirected to complete the captcha.
+     * It can contain the substring "{woid}" that is going to be replaced 
+     * with the withdrawal operation id and should point to the where the 
+     * bank SPA is located.
      */
     val spaCaptchaURL: String?,
 )
diff --git a/bank/src/main/kotlin/tech/libeufin/bank/helpers.kt 
b/bank/src/main/kotlin/tech/libeufin/bank/helpers.kt
index 04d334c3..34a966d8 100644
--- a/bank/src/main/kotlin/tech/libeufin/bank/helpers.kt
+++ b/bank/src/main/kotlin/tech/libeufin/bank/helpers.kt
@@ -85,17 +85,17 @@ fun doBasicAuth(db: Database, encodedCredentials: String): 
Customer? {
 
 /**
  * This function takes a prefixed Bearer token, removes the
- * bearer-token:-prefix and returns it.  Returns null, if the
+ * secret-token:-prefix and returns it.  Returns null, if the
  * input is invalid.
  */
 private fun splitBearerToken(tok: String): String? {
     val tokenSplit = tok.split(":", limit = 2)
     if (tokenSplit.size != 2) return null
-    if (tokenSplit[0] != "bearer-token") return null
+    if (tokenSplit[0] != "secret-token") return null
     return tokenSplit[1]
 }
 
-/* Performs the bearer-token authentication.  Returns the
+/* Performs the secret-token authentication.  Returns the
  * authenticated customer on success, null otherwise. */
 fun doTokenAuth(
     db: Database,

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]