From 56bcbc6be33b2418d3980ce64d34f2e087af57a7 Mon Sep 17 00:00:00 2001 From: Kekskurse Date: Wed, 27 Nov 2019 16:40:00 +0100 Subject: [PATCH] HotFix --- src/services/Apps.js | 4 ++-- src/views/OAuthPermission.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/services/Apps.js b/src/services/Apps.js index c7d67ce3..e1d5419f 100644 --- a/src/services/Apps.js +++ b/src/services/Apps.js @@ -19,8 +19,8 @@ export default { getAccess(id) { return Api().get('/v1/app/'+id+'/access?create=1') }, - allowAccess(id, redirect_uri, scope) { - return Api().post('/v1/app/'+id+'/access/allow', {redirect_uri: redirect_uri, scope:scope}); + allowAccess(id, redirect_uri, scope, state) { + return Api().post('/v1/app/'+id+'/access/allow', {redirect_uri: redirect_uri, scope:scope, state:state}); }, updateApp(app) { return Api().put("/v1/app/"+app.id, app); diff --git a/src/views/OAuthPermission.vue b/src/views/OAuthPermission.vue index ac3e7c0d..9a6c2877 100644 --- a/src/views/OAuthPermission.vue +++ b/src/views/OAuthPermission.vue @@ -86,7 +86,7 @@ }, allowAccess: function () { console.log(this.$route.query); - AppsService.allowAccess(this.appId, this.$route.query.redirect_uri, this.$route.query.scope).then((res) => { + AppsService.allowAccess(this.appId, this.$route.query.redirect_uri, this.$route.query.scope, this.$route.query.state).then((res) => { console.log("App Access", res); location.href=res.data.data.redirectUrl });