From 033414d3af59d3159c315bf39b0aa19e458f9b64 Mon Sep 17 00:00:00 2001 From: Rein Krul Date: Tue, 12 Nov 2024 09:38:02 +0100 Subject: [PATCH] Support uploading credentials in JWT format --- .../admin/credentials/UploadCredential.vue | 6 +-- .../credentials/UploadCredentialForm.vue | 42 ++++++++++++++----- 2 files changed, 34 insertions(+), 14 deletions(-) diff --git a/web/src/admin/credentials/UploadCredential.vue b/web/src/admin/credentials/UploadCredential.vue index dc739cd..d117937 100644 --- a/web/src/admin/credentials/UploadCredential.vue +++ b/web/src/admin/credentials/UploadCredential.vue @@ -3,13 +3,13 @@ title="Upload a Credential JSON" type="add">

- Here you can add a credential issued by another party to be stored in your wallet. Paste the JSON object below. + Here you can add a credential issued by another party to be stored in your wallet. Paste the JSON object or JWT below.

- +
@@ -32,7 +32,7 @@ export default { return { apiError: '', subjectID: '', - credential: {} + credential: undefined, } }, methods: { diff --git a/web/src/admin/credentials/UploadCredentialForm.vue b/web/src/admin/credentials/UploadCredentialForm.vue index 4c0e58d..1dd9f17 100644 --- a/web/src/admin/credentials/UploadCredentialForm.vue +++ b/web/src/admin/credentials/UploadCredentialForm.vue @@ -2,31 +2,51 @@
{{ error }}
- +