This commit is contained in:
Kekskurse 2019-11-27 16:40:00 +01:00
parent a20d9724ff
commit 56bcbc6be3
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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
});