diff --git a/CHANGELOG.md b/CHANGELOG.md
index 04b021a..f1715c2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,9 @@ VC Verifier Changelog
WIP
---
+1.4.0 (2023-03-15)
+---
+
- add OpenId4VP functionality
diff --git a/frontend/src/views/PresentationRequest.vue b/frontend/src/views/PresentationRequest.vue
index 6f6dbb2..51975ff 100644
--- a/frontend/src/views/PresentationRequest.vue
+++ b/frontend/src/views/PresentationRequest.vue
@@ -22,6 +22,7 @@
class="form-select" aria-label="Credential Type">
+
@@ -128,10 +129,12 @@ export default {
if (this.presentationRequestId) {
this.$api.get(this.$store.state.OPENID_ENDPOINT + 'presentation' + this.getRequestPath())
.then((res) => {
- console.log(res.data)
clearInterval(this.intervalId)
this.intervalId = undefined
- // TODO store presentation and route to verify
+ const presentationResponse = res.data
+ const presentation = typeof presentationResponse.vp_token == 'string' ? JSON.parse(presentationResponse.vp_token) : presentationResponse.vp_token;
+ this.$store.dispatch("addVerifiables", [presentation])
+ .then(() => this.$router.push({ path: '/verify' }));
})
.catch((error) => {
if (error.response.status != 404) {
@@ -148,9 +151,6 @@ export default {
getRequestPath() {
return this.presentationRequestId ? '/' + this.presentationRequestId : '';
},
- submitFile() {
- this.$router.push({ path: '/verify' })
- },
registerPresentationRequest() {
this.generating = true
this.$api.post(this.$store.state.OPENID_ENDPOINT + 'request' + this.getRequestPath(), this.presentationRequest)