gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] 02/02: anastasis-core: towards supporting iban auth


From: gnunet
Subject: [taler-wallet-core] 02/02: anastasis-core: towards supporting iban auth
Date: Fri, 05 Nov 2021 12:50:28 +0100

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

dold pushed a commit to branch master
in repository wallet-core.

commit e627f65f3cf61428202e47e9e68a5baf4a9abfae
Author: Florian Dold <florian@dold.me>
AuthorDate: Fri Nov 5 12:50:18 2021 +0100

    anastasis-core: towards supporting iban auth
---
 packages/anastasis-core/src/index.ts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/packages/anastasis-core/src/index.ts 
b/packages/anastasis-core/src/index.ts
index 2fdf0f83..d3e938f0 100644
--- a/packages/anastasis-core/src/index.ts
+++ b/packages/anastasis-core/src/index.ts
@@ -930,6 +930,20 @@ async function requestTruth(
     };
   }
 
+  if (resp.status === HttpStatusCode.Accepted) {
+    const body = await resp.json();
+    logger.info(`got body ${j2s(body)}`);
+    if (body.method === "iban") {
+      // FIXME:
+    } else {
+      return {
+        code: TalerErrorCode.ANASTASIS_TRUTH_CHALLENGE_FAILED,
+        hint: "unknown external authentication method",
+        http_status: resp.status,
+      } as ReducerStateError;
+    }
+  }
+
   return {
     code: TalerErrorCode.ANASTASIS_TRUTH_CHALLENGE_FAILED,
     hint: "got unexpected /truth/ response status",

-- 
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]