commit 6b57f220fcc33d77db825524c8816d511614bac5
parent 1e4b1785f5d34c05b639803e3f6d46d5c561c445
Author: Sebastian <sebasjm@gmail.com>
Date: Mon, 25 Sep 2023 09:18:06 -0300
rfc8959
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git 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,