From 2f8fd783b60af610353119689bb8df05ca7b35ac Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 24 Jun 2022 14:25:33 -0300 Subject: [PATCH] add service providers for demoland and filename support for secrets --- packages/anastasis-core/src/anastasis-data.ts | 8 ++++++++ packages/anastasis-core/src/index.ts | 1 + packages/anastasis-core/src/reducer-types.ts | 6 ++---- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/packages/anastasis-core/src/anastasis-data.ts b/packages/anastasis-core/src/anastasis-data.ts index cac4dc6c6..4cd9285fd 100644 --- a/packages/anastasis-core/src/anastasis-data.ts +++ b/packages/anastasis-core/src/anastasis-data.ts @@ -23,6 +23,14 @@ export const anastasisData = { url: "https://v1.anastasis.lu/", name: "Anastasis SARL, Luxembourg", }, + { + url: "http://v1.anastasis.taler.net/", + restricted: "xx", + }, + { + url: "https://v1.anastasis.lu/", + restricted: "xx", + }, { url: "http://localhost:8086/", restricted: "xx", diff --git a/packages/anastasis-core/src/index.ts b/packages/anastasis-core/src/index.ts index b5e0517e6..b933c4e74 100644 --- a/packages/anastasis-core/src/index.ts +++ b/packages/anastasis-core/src/index.ts @@ -1521,6 +1521,7 @@ async function enterSecret( core_secret: { mime: args.secret.mime ?? "text/plain", value: args.secret.value, + filename: args.secret.filename, }, // A new secret invalidates the existing recovery data. recovery_data: undefined, diff --git a/packages/anastasis-core/src/reducer-types.ts b/packages/anastasis-core/src/reducer-types.ts index ca8edff40..4b87d3ae6 100644 --- a/packages/anastasis-core/src/reducer-types.ts +++ b/packages/anastasis-core/src/reducer-types.ts @@ -229,10 +229,7 @@ export interface ReducerStateRecovery { */ recovered_key_shares?: { [truth_uuid: string]: KeyShare }; - core_secret?: { - mime: string; - value: string; - }; + core_secret?: CoreSecret; authentication_providers?: AuthenticationProviderStatusMap; } @@ -390,6 +387,7 @@ export interface ActionArgsEnterSecret { secret: { value: string; mime?: string; + filename?: string; }; expiration: TalerProtocolTimestamp; }