gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated (2139cfd7 -> e627f65f)


From: gnunet
Subject: [taler-wallet-core] branch master updated (2139cfd7 -> e627f65f)
Date: Fri, 05 Nov 2021 12:50:26 +0100

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

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

    from 2139cfd7 anastasis-core: make policy suggestion a bit more compatible 
with the C implementation
     new dc1fce22 anastasis-core: cli entry point
     new e627f65f anastasis-core: towards supporting iban auth

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:
 packages/anastasis-core/src/cli-entry.ts | 15 +++++++++++++++
 packages/anastasis-core/src/index.ts     | 14 ++++++++++++++
 2 files changed, 29 insertions(+)
 create mode 100644 packages/anastasis-core/src/cli-entry.ts

diff --git a/packages/anastasis-core/src/cli-entry.ts 
b/packages/anastasis-core/src/cli-entry.ts
new file mode 100644
index 00000000..151b47f2
--- /dev/null
+++ b/packages/anastasis-core/src/cli-entry.ts
@@ -0,0 +1,15 @@
+import { reducerCliMain } from "./cli.js";
+
+async function r() {
+  try {
+    // @ts-ignore
+    (await import("source-map-support")).install();
+  } catch (e) {
+    console.warn("can't load souremaps, please install source-map-support");
+    // Do nothing.
+  }
+
+  reducerCliMain();
+}
+
+r();
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]