HotFix
This commit is contained in:
parent
a20d9724ff
commit
56bcbc6be3
2 changed files with 3 additions and 3 deletions
|
@ -19,8 +19,8 @@ export default {
|
||||||
getAccess(id) {
|
getAccess(id) {
|
||||||
return Api().get('/v1/app/'+id+'/access?create=1')
|
return Api().get('/v1/app/'+id+'/access?create=1')
|
||||||
},
|
},
|
||||||
allowAccess(id, redirect_uri, scope) {
|
allowAccess(id, redirect_uri, scope, state) {
|
||||||
return Api().post('/v1/app/'+id+'/access/allow', {redirect_uri: redirect_uri, scope:scope});
|
return Api().post('/v1/app/'+id+'/access/allow', {redirect_uri: redirect_uri, scope:scope, state:state});
|
||||||
},
|
},
|
||||||
updateApp(app) {
|
updateApp(app) {
|
||||||
return Api().put("/v1/app/"+app.id, app);
|
return Api().put("/v1/app/"+app.id, app);
|
||||||
|
|
|
@ -86,7 +86,7 @@
|
||||||
},
|
},
|
||||||
allowAccess: function () {
|
allowAccess: function () {
|
||||||
console.log(this.$route.query);
|
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);
|
console.log("App Access", res);
|
||||||
location.href=res.data.data.redirectUrl
|
location.href=res.data.data.redirectUrl
|
||||||
});
|
});
|
||||||
|
|
Reference in a new issue