1 line
10 KiB
JSON
1 line
10 KiB
JSON
|
{"remainingRequest":"/home/soeren/dev/keksaccountgui/node_modules/babel-loader/lib/index.js!/home/soeren/dev/keksaccountgui/node_modules/vuetify-loader/lib/loader.js!/home/soeren/dev/keksaccountgui/node_modules/cache-loader/dist/cjs.js??ref--0-0!/home/soeren/dev/keksaccountgui/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/soeren/dev/keksaccountgui/src/views/OAuthPermission.vue?vue&type=script&lang=js&","dependencies":[{"path":"/home/soeren/dev/keksaccountgui/src/views/OAuthPermission.vue","mtime":1561046436563},{"path":"/home/soeren/dev/keksaccountgui/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/home/soeren/dev/keksaccountgui/node_modules/babel-loader/lib/index.js","mtime":499162500000},{"path":"/home/soeren/dev/keksaccountgui/node_modules/vuetify-loader/lib/loader.js","mtime":1564062719000},{"path":"/home/soeren/dev/keksaccountgui/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/home/soeren/dev/keksaccountgui/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport ServerService from \"../services/Server\";\nimport UserService from \"../services/User\";\nimport LoginComponent from \"../components/Login\";\nimport AppsService from \"../services/Apps\";\nexport default {\n data: function data() {\n return {\n nameBig: '',\n nameSmall: '',\n username: '',\n password: '',\n errorMessage: '',\n app: null,\n disabledLoginButton: true,\n appId: null\n };\n },\n components: {\n 'Login': LoginComponent\n },\n methods: {\n getAppData: function getAppData() {\n var _this = this;\n\n AppsService.getAppByKey(this.$route.query.client_id).then(function (res) {\n _this.appId = res.data.data[0].id;\n AppsService.getAccess(res.data.data[0].id).then(function (access) {\n if (access.data.data.status == \"allowed\") {\n if (res.data.data[0].properties.stopAutoRedirect) {\n _this.disabledLoginButton = false;\n console.log(\"Disabled Auto redirect\");\n } else {\n _this.allowAccess();\n }\n\n console.log(\"ALLOWED\");\n } else {\n _this.disabledLoginButton = false;\n }\n\n console.log(\"Access Data\", res.data);\n });\n console.log(\"App Data\", res.data);\n _this.app = res.data.data[0];\n });\n },\n allowAccess: function allowAccess() {\n console.log(this.$route.query);\n AppsService.allowAccess(this.appId, this.$route.query.redirect_uri, this.$route.query.scope).then(function (res) {\n console.log(\"App Access\", res);\n location.href = res.data.data.redirectUrl;\n });\n }\n },\n mounted: function mounted() {\n this.nameBig = this.$store.getters.getSettingValue(\"name_big\");\n this.nameSmall = this.$store.getters.getSettingValue(\"name_small\");\n this.getAppData();\n }\n};",{"version":3,"sources":["OAuthPermission.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CA,OAAA,aAAA;AACA,OAAA,WAAA;AACA,OAAA,cAAA;AACA,OAAA,WAAA;AAEA,eAAA;AACA,EAAA,IADA,kBACA;AACA,WAAA;AACA,MAAA,OAAA,EAAA,EADA;AAEA,MAAA,SAAA,EAAA,EAFA;AAGA,MAAA,QAAA,EAAA,EAHA;AAIA,MAAA,QAAA,EAAA,EAJA;AAKA,MAAA,YAAA,EAAA,EALA;AAMA,MAAA,GAAA,EAAA,IANA;AAOA,MAAA,mBAAA,EAAA,IAPA;AAQA,MAAA,KAAA,EAAA;AARA,KAAA;AAUA,GAZA;AAaA,EAAA,UAAA,EAAA;AACA,aAAA;AADA,GAbA;AAgBA,EAAA,OAAA,EAAA;AACA,IAAA,UAAA,EAAA,sBAAA;AAAA;;AACA,MAAA,WAAA,CAAA,WAAA,CAAA,KAAA,MAAA,CAAA,KAAA,CAAA,SAAA,EAAA,IAAA,CAAA,UAAA,GAAA,EAAA;AACA,QAAA,KAAA,CAAA,KAAA,GAAA,GAAA,CAAA,IAAA,CAAA,IAAA,CAAA,CAAA,EAAA,EAAA;AACA,QAAA,WAAA,CAAA,SAAA,CAAA,GAAA,CAAA,IAAA,CAAA,IAAA,CAAA,CAAA,EAAA,EAAA,EAAA,IAAA,CAAA,UAAA,MAAA,EAAA;AACA,cAAA,MAAA,CAAA,IAAA,CAAA,IAAA,CAAA,MAAA,IAAA,SAAA,EAAA;AACA,gBAAA,GAAA,CAAA,IAAA,CAAA,IAAA,CAAA,CAAA,EAAA,UAAA,CAAA,gBAAA,EAAA;
|