aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-06-24 14:25:33 -0300
committerSebastian <sebasjm@gmail.com>2022-06-24 14:25:33 -0300
commit2f8fd783b60af610353119689bb8df05ca7b35ac (patch)
tree5d4d8e7d34433f6ec8f9513c87da9e9fbb65e4ac /packages
parentcc01417a9983111fed775d80edef53e07f25aa9d (diff)
add service providers for demoland and filename support for secrets
Diffstat (limited to 'packages')
-rw-r--r--packages/anastasis-core/src/anastasis-data.ts8
-rw-r--r--packages/anastasis-core/src/index.ts1
-rw-r--r--packages/anastasis-core/src/reducer-types.ts6
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
@@ -24,6 +24,14 @@ export const anastasisData = {
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;
}