{"version":3,"sources":["webpack:///./src/services/authorizations/authorizationService.ts","webpack:///./src/components/authorizations/modals/AuthorizationInfoModal.vue?b6c6","webpack:///./src/components/authorizations/_Authorizations.vue?eb22","webpack:///./src/components/authorizations/modals/AuthorizationDeleteModal.vue?cc6e","webpack:///./src/components/authorizations/modals/AuthorizationDeleteModal.vue","webpack:///./src/components/authorizations/modals/AuthorizationDeleteModal.vue?d3d9","webpack:///./src/components/authorizations/modals/AuthorizationDeleteModal.vue?e558","webpack:///./src/components/authorizations/modals/AuthorizationInfoModal.vue?87d8","webpack:///./src/components/authorizations/modals/AuthorizationInfoModal.vue","webpack:///./src/components/authorizations/modals/AuthorizationInfoModal.vue?52e5","webpack:///./src/components/authorizations/modals/AuthorizationInfoModal.vue?5703","webpack:///./src/components/authorizations/modals/SelectAuthorizationFlow.vue?812f","webpack:///./src/components/authorizations/modals/SelectAuthorizationFlow.vue","webpack:///./src/components/authorizations/modals/SelectAuthorizationFlow.vue?ac04","webpack:///./src/components/authorizations/modals/SelectAuthorizationFlow.vue?2ab2","webpack:///./src/components/authorizations/fields/authorizationFields.ts","webpack:///./src/components/authorizations/_Authorizations.vue","webpack:///./src/components/authorizations/_Authorizations.vue?67f0","webpack:///./src/components/authorizations/_Authorizations.vue?8a36","webpack:///./src/components/authorizations/modals/SelectAuthorizationFlow.vue?0f13","webpack:///./src/services/authorizations/types.ts","webpack:///./src/components/authorizations/_Authorizations.vue?a81a"],"names":["getAllAuthorizations","a","Promise","resolve","reject","get","then","response","data","error","getAuthorization","id","getAuthorizationInfo","getRedirectUri","createAuthorization","authorization","post","updateAuthorization","put","deleteAuthorization","delete","getOAuthJwtToken","render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","_v","_s","$t","model","value","callback","$$v","searchQuery","expression","on","$event","preventDefault","openSelectFlowModal","isBusy","fields","filteredData","scopedSlots","_u","key","fn","proxy","scope","row","class","item","authorized","domProps","ref","credentialsName","flowTypesEnum","flowType","toLowerCase","directives","name","rawName","modifiers","info","length","fetchData","staticRenderFns","removeEvent","confirm","decline","authorizationName","authorizationToBeDeleted","isSaved","e","window","removeEventListener","handleEnter","authorizationId","$bvModal","show","addEventListener","hide","$emit","component","authorizationInfo","username","formatDate","createdOn","modifiedOn","modifiedBy","date","utc","local","format","selectFlow","SelectAuthorizationFlow","type","$router","push","authorizationsFields","label","tdClass","i18n","t","sortable","authorizations","bus","$on","$off","$refs","selectAuthorizationFlowModal","open","ResourceOwnerPasswordCredentialsFlow","params","AuthorizationCodeFlow","ClientCredentialFlow","authorizationInfoModal","authorizationDeleteModal","filter","x","includes","components","AuthorizationDeleteModal","AuthorizationInfoModal","FlowTypesEnum"],"mappings":"muBAMO,SAAeA,IAAtB,+B,kCAAO,sBAAAC,EAAA,gFACI,IAAIC,SAAQ,SAACC,EAASC,GACzB,OAAIC,IAAI,UAAUC,MACd,SAAAC,GACIJ,EAAQI,EAASC,SAErB,SAAAC,GACIL,EAAOK,UAPhB,2C,wBAaA,SAAeC,EAAtB,kC,kCAAO,WAAgCC,GAAhC,SAAAV,EAAA,gFACI,IAAIC,SAAQ,SAACC,EAASC,GACzB,OAAIC,IAAJ,iBAAkBM,IAAML,MACpB,SAAAC,GACIJ,EAAQI,EAASC,SAErB,SAAAC,GACIL,EAAOK,UAPhB,2C,wBAaA,SAAeG,EAAtB,kC,kCAAO,WAAoCD,GAApC,SAAAV,EAAA,gFACI,IAAIC,SAAQ,SAACC,EAASC,GACzB,OAAIC,IAAJ,sBAAuBM,IAAML,MACzB,SAAAC,GACIJ,EAAQI,EAASC,SAErB,SAAAC,GACIL,EAAOK,UAPhB,2C,wBAaA,SAAeI,IAAtB,+B,kCAAO,sBAAAZ,EAAA,gFACI,IAAIC,SAAQ,SAACC,EAASC,GACzB,OAAIC,IAAJ,sBAA8BC,MAC1B,SAAAC,GACIJ,EAAQI,EAASC,SAErB,SAAAC,GACIL,EAAOK,UAPhB,2C,wBAaD,SAAUK,EAAoBC,GAChC,OAAO,IAAIb,SAAQ,SAACC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AAY,eACd,GACA7E,EACAgD,GACA,EACA,KACA,WACA,OAIa,gB,2CCnBf,yBAA0hB,EAAG,G,kCCkC7hB,IAAY0D,EAAZ,2CAAYA,GAER,wDACA,sDACA,sFAJJ,CAAYA,MAAa,M,yDClCzB,yBAAikB,EAAG","file":"js/chunk-d9354f12.0097f78b.js","sourcesContent":["import api from \"@/services/api\";\r\nimport {\r\n Authorization,\r\n AuthorizationInfo\r\n} from \"@/services/authorizations/types\";\r\n\r\nexport async function getAllAuthorizations(): Promise> {\r\n return new Promise((resolve, reject) => {\r\n api.get(\"/OAuth\").then(\r\n response => {\r\n resolve(response.data);\r\n },\r\n error => {\r\n reject(error);\r\n }\r\n );\r\n });\r\n}\r\n\r\nexport async function getAuthorization(id: string): Promise {\r\n return new Promise((resolve, reject) => {\r\n api.get(`/OAuth/${id}`).then(\r\n response => {\r\n resolve(response.data);\r\n },\r\n error => {\r\n reject(error);\r\n }\r\n );\r\n });\r\n}\r\n\r\nexport async function getAuthorizationInfo(id: string): Promise {\r\n return new Promise((resolve, reject) => {\r\n api.get(`/OAuth/info/${id}`).then(\r\n response => {\r\n resolve(response.data);\r\n },\r\n error => {\r\n reject(error);\r\n }\r\n );\r\n });\r\n}\r\n\r\nexport async function getRedirectUri(): Promise {\r\n return new Promise((resolve, reject) => {\r\n api.get(`/OAuth/RedirectUri`).then(\r\n response => {\r\n resolve(response.data);\r\n },\r\n error => {\r\n reject(error);\r\n }\r\n );\r\n });\r\n}\r\n\r\nexport function createAuthorization(authorization: Authorization) : Promise {\r\n return new Promise((resolve, reject) => {\r\n api.post(`/OAuth`, authorization).then(\r\n response => {\r\n resolve(response.data);\r\n },\r\n error => {\r\n reject(error);\r\n }\r\n );\r\n });\r\n}\r\n\r\nexport function updateAuthorization(authorization: Authorization) : Promise {\r\n return new Promise((resolve, reject) => {\r\n api.put(`/OAuth`, authorization).then(\r\n response => {\r\n resolve(response.data);\r\n },\r\n error => {\r\n reject(error);\r\n }\r\n );\r\n });\r\n}\r\n\r\nexport function deleteAuthorization(id: string): Promise {\r\n return new Promise((resolve, reject) => {\r\n api.delete(`/OAuth/${id}`).then(\r\n response => {\r\n resolve(response.data);\r\n },\r\n error => {\r\n reject(error);\r\n }\r\n );\r\n });\r\n}\r\n\r\nexport async function getAccessToken(param: string): Promise {\r\n return new Promise((resolve, reject) => {\r\n api.get(`/OAuth/getAccessToken/${param}`).then(\r\n response => {\r\n resolve(response.data);\r\n },\r\n error => {\r\n reject(error);\r\n }\r\n );\r\n });\r\n}\r\n\r\nexport function authorize(id: string) : Promise {\r\n return new Promise((resolve, reject) => {\r\n api.post(`/OAuth/authorize/${id}`, {}).then(\r\n response => {\r\n resolve(response.data);\r\n },\r\n error => {\r\n reject(error);\r\n }\r\n );\r\n });\r\n}\r\n\r\nexport async function getOAuthJwtToken(id: string): Promise {\r\n return new Promise((resolve, reject) => {\r\n api.get(`/OAuth/getOAuthJwtToken/${id}`).then(\r\n response => {\r\n resolve(response.data);\r\n },\r\n error => {\r\n reject(error);\r\n }\r\n );\r\n });\r\n}\r\n","import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AuthorizationInfoModal.vue?vue&type=style&index=0&id=31adaf0c&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AuthorizationInfoModal.vue?vue&type=style&index=0&id=31adaf0c&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('header',{staticClass:\"page-header\"},[_c('div',[_c('h2',{staticClass:\"mb-0\"},[_c('svg',{staticClass:\"vc-icon\",attrs:{\"viewBox\":\"0 0 100 100\"}},[_c('use',{attrs:{\"xlink:href\":\"#authorization-icon\"}})]),_vm._v(\" \"+_vm._s(_vm.$t(\"authorization.title\"))+\" \")])])]),_c('div',[_c('div',{staticClass:\"table-top-actions\"},[_c('div',{staticClass:\"actions-btn-wrapper\"},[_c('div',{staticClass:\"content-search\"},[_c('b-form-input',{staticClass:\"form-control form-control-sm\",attrs:{\"placeholder\":_vm.$t('common.search')},model:{value:(_vm.searchQuery),callback:function ($$v) {_vm.searchQuery=$$v},expression:\"searchQuery\"}}),_c('button',{staticClass:\"search-btn btn btn-sm\",attrs:{\"type\":\"submit\"}},[_c('svg',{staticClass:\"vc-icon\",attrs:{\"viewBox\":\"0 0 100 100\"}},[_c('use',{attrs:{\"xlink:href\":\"#search-icon\"}})])]),_c('button',{staticClass:\"search-clear btn btn-sm\",attrs:{\"type\":\"submit\"},on:{\"mousedown\":function($event){$event.preventDefault();_vm.searchQuery = ''}}},[_c('svg',{staticClass:\"vc-icon\",attrs:{\"viewBox\":\"0 0 100 100\"}},[_c('use',{attrs:{\"xlink:href\":\"#close-icon\"}})])])],1),_c('b-button',{attrs:{\"variant\":\"primary\"},on:{\"click\":_vm.openSelectFlowModal}},[_vm._v(_vm._s(_vm.$t(\"authorization.addAuthorization\")))])],1)]),_c('div',{staticClass:\"table-wrapper custom-scrollbar darkScroll-grayBg\"},[_c('b-table',{staticClass:\"thead-sticky\",attrs:{\"busy\":_vm.isBusy,\"fields\":_vm.fields,\"items\":_vm.filteredData,\"tbody-tr-class\":\"vsc-list-item\",\"responsive\":\"sm\",\"show-empty\":\"\",\"sort-by\":\"name\"},scopedSlots:_vm._u([{key:\"table-busy\",fn:function(){return [_c('div',{staticClass:\"text-center text-danger my-2\"},[_c('b-spinner',{attrs:{\"label\":\"Spinning\",\"type\":\"grow\",\"variant\":\"primary\"}})],1)]},proxy:true},{key:\"empty\",fn:function(scope){return [_c('div',{staticClass:\"text-center\"},[_vm._v(_vm._s(_vm.$t(\"common.emptyTable\")))])]}},{key:\"cell(authorized)\",fn:function(row){return [_c('div',{staticClass:\"dot\",class:row.item.authorized ? 'active' : 'inactive',attrs:{\"id\":'status-dot-' + row.item.id}}),_c('b-tooltip',{attrs:{\"custom-class\":\"solution-tooltip\",\"placement\":\"top\",\"boundary\":\"document\",\"target\":'status-dot-' + row.item.id}},[_c('span',{domProps:{\"innerHTML\":_vm._s(row.item.authorized ? _vm.$t('authorization.authorized') : _vm.$t('authorization.notAuthorized'))}})])]}},{key:\"cell(credentialsName)\",fn:function(row){return [_c('router-link',{staticClass:\"btn btn-only-icon goto-item\",attrs:{\"to\":_vm.updateAuthorization(row.item)}},[_c('span',{ref:'element_' + row.item.id,staticClass:\"vsc-list-item-name goToArrow\"},[_vm._v(_vm._s(row.item.credentialsName))])])]}},{key:\"cell(flowType)\",fn:function(row){return [_c('span',[_vm._v(_vm._s(_vm.$t((\"authorization.\" + (_vm.flowTypesEnum[row.item.flowType].toLowerCase())))))])]}},{key:\"cell(actions)\",fn:function(row){return [_c('div',{staticClass:\"d-flex justify-content-end\"},[_c('b-button',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",modifiers:{\"hover\":true}}],staticClass:\"info-btn btn-only-icon\",attrs:{\"title\":_vm.$t('authorization.info')},on:{\"click\":function($event){return _vm.info(row.item.id)}}},[_c('svg',{staticClass:\"vc-icon_lg\",attrs:{\"viewBox\":\"0 0 100 100\"}},[_c('use',{attrs:{\"xlink:href\":\"#info-icon\"}})])]),_c('b-button',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",modifiers:{\"hover\":true}}],staticClass:\"btn-only-icon\",attrs:{\"title\":_vm.$t('common.delete')},on:{\"click\":function($event){return _vm.deleteAuthorization(row.item.id, row.item.credentialsName)}}},[_c('svg',{staticClass:\"vc-icon_lg ver-ar\",attrs:{\"viewBox\":\"0 0 100 100\"}},[_c('use',{attrs:{\"xlink:href\":\"#delete-icon\"}})])])],1)]}}])}),_c('div',{staticClass:\"result-counter\"},[_vm._v(\" \"+_vm._s(_vm.filteredData.length)+\" \"+_vm._s(_vm.filteredData.length > 1 || _vm.filteredData.length === 0 ? _vm.$t(\"common.resultMany\") : _vm.$t(\"common.resultSingle\"))+\" \")])],1)]),_c('authorization-delete-modal',{ref:\"authorizationDeleteModal\",on:{\"reload\":_vm.fetchData}}),_c('authorization-info-modal',{ref:\"authorizationInfoModal\"}),_c('select-authorization-flow',{ref:\"selectAuthorizationFlowModal\"})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-modal',{attrs:{\"centered\":\"\",\"id\":\"modal-deleteAuthorization\"},on:{\"hide\":_vm.removeEvent},scopedSlots:_vm._u([{key:\"modal-footer\",fn:function(){return [_c('b-button',{attrs:{\"variant\":\"primary\"},on:{\"click\":_vm.confirm}},[_vm._v(_vm._s(_vm.$t(\"common.btnYes\")))]),_c('b-button',{attrs:{\"variant\":\"dark\"},on:{\"click\":_vm.decline}},[_vm._v(_vm._s(_vm.$t(\"common.btnNo\")))])]},proxy:true}])},[_c('div',{staticClass:\"confirmation-modal-body\"},[_c('svg',{staticClass:\"vc-icon_xl ver-ar fill-danger\",attrs:{\"viewBox\":\"0 0 100 100\"}},[_c('use',{attrs:{\"xlink:href\":\"#delete-icon\"}})]),_c('h2',[_vm._v(_vm._s(_vm.$t(\"authorization.deletePromptMessage\"))+\" \\\"\"+_vm._s(this.authorizationName)+\"\\\"?\")]),_c('small',[_vm._v(_vm._s(_vm.$t(\"common.deleteDescription\")))])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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\r\nimport { Component, Vue } from \"vue-property-decorator\";\r\nimport { deleteAuthorization } from \"@/services/authorizations/authorizationService\";\r\n\r\n@Component\r\nexport default class AuthorizationDeleteModal extends Vue {\r\n authorizationToBeDeleted: string = \"\";\r\n authorizationName: string = \"\"\r\n isSaved: boolean = false;\r\n\r\n handleEnter(e: KeyboardEvent) {\r\n if (e.key === \"Enter\") this.confirm();\r\n }\r\n\r\n removeEvent() {\r\n window.removeEventListener(\"keydown\", this.handleEnter);\r\n this.isSaved = false;\r\n }\r\n\r\n open(authorizationId: string, name: string) {\r\n this.authorizationToBeDeleted = authorizationId;\r\n this.authorizationName = name;\r\n this.$bvModal.show(\"modal-deleteAuthorization\");\r\n window.addEventListener(\"keydown\", this.handleEnter);\r\n }\r\n\r\n decline() {\r\n this.$bvModal.hide(\"modal-deleteAuthorization\");\r\n this.authorizationName = \"\";\r\n this.authorizationToBeDeleted = \"\";\r\n }\r\n\r\n confirm() {\r\n if (this.isSaved) return;\r\n this.isSaved = true;\r\n deleteAuthorization(this.authorizationToBeDeleted).then(() => {\r\n this.$emit(\"reload\");\r\n this.authorizationName = \"\";\r\n this.authorizationToBeDeleted = \"\";\r\n this.$bvModal.hide(\"modal-deleteAuthorization\");\r\n });\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AuthorizationDeleteModal.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AuthorizationDeleteModal.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./AuthorizationDeleteModal.vue?vue&type=template&id=48008eca&\"\nimport script from \"./AuthorizationDeleteModal.vue?vue&type=script&lang=ts&\"\nexport * from \"./AuthorizationDeleteModal.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-modal',{attrs:{\"centered\":\"\",\"id\":\"modal-authorizationInfo\",\"size\":\"lg\",\"title\":_vm.$t('authorization.info')},scopedSlots:_vm._u([{key:\"modal-footer\",fn:function(){return [_c('b-button',{attrs:{\"variant\":\"primary\"},on:{\"click\":_vm.hide}},[_vm._v(_vm._s(_vm.$t(\"common.ok\")))])]},proxy:true}])},[_c('ul',{staticClass:\"info-list horizontal pb-3\"},[_c('li',[_c('b',{staticClass:\"il-label\"},[_vm._v(_vm._s(_vm.$t(\"common.name\"))+\" :\")]),_c('span',[_vm._v(_vm._s(_vm.authorizationInfo.credentialsName))])]),_c('li',[_c('b',{staticClass:\"il-label\"},[_vm._v(_vm._s(_vm.$t(\"authorization.account\"))+\" :\")]),_c('span',[_vm._v(_vm._s(_vm.authorizationInfo.username))])]),_c('li',[_c('b',{staticClass:\"il-label\"},[_vm._v(_vm._s(_vm.$t(\"authorization.createdOn\"))+\" :\")]),_c('span',[_vm._v(_vm._s(_vm.formatDate(_vm.authorizationInfo.createdOn)))])]),_c('li',[_c('b',{staticClass:\"il-label\"},[_vm._v(_vm._s(_vm.$t(\"authorization.modifiedOn\"))+\" :\")]),_c('span',[_vm._v(_vm._s(_vm.formatDate(_vm.authorizationInfo.modifiedOn)))])]),_c('li',[_c('b',{staticClass:\"il-label\"},[_vm._v(_vm._s(_vm.$t(\"authorization.modifiedBy\"))+\" :\")]),_c('span',[_vm._v(_vm._s(_vm.authorizationInfo.modifiedBy))])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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\r\nimport { Component, Vue } from \"vue-property-decorator\";\r\nimport { getAuthorizationInfo } from \"@/services/authorizations/authorizationService\";\r\nimport { AuthorizationInfo } from \"@/services/authorizations/types\";\r\nimport moment from \"moment\";\r\n\r\n@Component\r\nexport default class AuthorizationInfoModal extends Vue {\r\n authorizationInfo = {} as AuthorizationInfo;\r\n\r\n open(authorizationId: string) {\r\n getAuthorizationInfo(authorizationId).then(response => {\r\n this.authorizationInfo = response;\r\n this.$bvModal.show(\"modal-authorizationInfo\");\r\n });\r\n }\r\n\r\n hide() {\r\n this.$bvModal.hide(\"modal-authorizationInfo\");\r\n }\r\n\r\n formatDate(date: Date) {\r\n return moment.utc(date).local().format(\"LLL\");\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AuthorizationInfoModal.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AuthorizationInfoModal.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./AuthorizationInfoModal.vue?vue&type=template&id=31adaf0c&scoped=true&\"\nimport script from \"./AuthorizationInfoModal.vue?vue&type=script&lang=ts&\"\nexport * from \"./AuthorizationInfoModal.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./AuthorizationInfoModal.vue?vue&type=style&index=0&id=31adaf0c&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"31adaf0c\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-modal',{attrs:{\"centered\":\"\",\"hide-footer\":\"\",\"no-stacking\":\"\",\"size\":\"lg\",\"id\":\"modal-select-template-type\",\"body-class\":\"no-scroll\",\"title\":_vm.$t('authorization.selectAuthorizationFlow')}},[_c('div',{staticClass:\"select-item-type-wrap\"},[_c('div',{staticClass:\"item-type\",on:{\"click\":function($event){return _vm.selectFlow('ropcFlow')}}},[_c('div',{staticClass:\"icon-wrap\"},[_c('svg',{staticClass:\"vc-icon\"},[_c('use',{attrs:{\"xlink:href\":\"#authorization-icon\"}})])]),_c('h5',[_vm._v(_vm._s(_vm.$t('authorization.ropcFlow')))])]),_c('div',{staticClass:\"item-type\",on:{\"click\":function($event){return _vm.selectFlow('authorizationCodeFlow')}}},[_c('div',{staticClass:\"icon-wrap\"},[_c('svg',{staticClass:\"vc-icon\"},[_c('use',{attrs:{\"xlink:href\":\"#authorization-icon\"}})])]),_c('h5',[_vm._v(_vm._s(_vm.$t('authorization.authorizationCodeFlow')))])]),_c('div',{staticClass:\"item-type\",on:{\"click\":function($event){return _vm.selectFlow('clientCredentialFlow')}}},[_c('div',{staticClass:\"icon-wrap\"},[_c('svg',{staticClass:\"vc-icon\"},[_c('use',{attrs:{\"xlink:href\":\"#authorization-icon\"}})])]),_c('h5',[_vm._v(_vm._s(_vm.$t('authorization.clientCredentialFlow')))])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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\r\nimport { Component, Vue } from \"vue-property-decorator\";\r\n\r\n@Component\r\nexport default class SelectAuthorizationFlow extends Vue {\r\n // methods\r\n open() {\r\n this.$bvModal.show(\"modal-select-template-type\");\r\n }\r\n\r\n selectFlow(type: string) {\r\n if (type === \"ropcFlow\") this.$router.push({ name: \"createRopcAuthorization\" });\r\n if (type === \"authorizationCodeFlow\") this.$router.push({ name: \"createAcfAuthorization\" });\r\n if (type === \"clientCredentialFlow\") this.$router.push({ name: \"createCcfAuthorization\" });\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SelectAuthorizationFlow.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SelectAuthorizationFlow.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SelectAuthorizationFlow.vue?vue&type=template&id=495e8742&scoped=true&\"\nimport script from \"./SelectAuthorizationFlow.vue?vue&type=script&lang=ts&\"\nexport * from \"./SelectAuthorizationFlow.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./SelectAuthorizationFlow.vue?vue&type=style&index=0&id=495e8742&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"495e8742\",\n null\n \n)\n\nexport default component.exports","import i18n from \"@/i18n\";\r\n\r\nexport const authorizationsFields = [\r\n {\r\n key: \"authorized\",\r\n label: \"\",\r\n tdClass: \"dot-column\"\r\n },\r\n {\r\n key: \"credentialsName\",\r\n label: i18n.t(\"common.name\"),\r\n sortable: true\r\n },\r\n {\r\n key: \"username\",\r\n label: i18n.t(\"authorization.account\"),\r\n sortable: true\r\n },\r\n {\r\n key: \"id\",\r\n label: i18n.t(\"authorization.authorizationId\"),\r\n sortable: true\r\n },\r\n {\r\n key: \"flowType\",\r\n label: i18n.t(\"authorization.flowType\"),\r\n sortable: true\r\n },\r\n {\r\n key: \"actions\",\r\n label: \"\"\r\n }\r\n];\r\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\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\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Vue } from \"vue-property-decorator\";\r\nimport { bus } from \"@/bus\";\r\n// components\r\nimport AuthorizationDeleteModal from \"@/components/authorizations/modals/AuthorizationDeleteModal.vue\";\r\nimport AuthorizationInfoModal from \"@/components/authorizations/modals/AuthorizationInfoModal.vue\";\r\nimport SelectAuthorizationFlow from \"@/components/authorizations/modals/SelectAuthorizationFlow.vue\";\r\n// service methods\r\nimport { getAllAuthorizations } from \"@/services/authorizations/authorizationService\";\r\n// types\r\nimport { Authorization, FlowTypesEnum } from \"@/services/authorizations/types\";\r\nimport { authorizationsFields } from \"@/components/authorizations/fields/authorizationFields\";\r\n\r\n@Component({\r\n components: { AuthorizationDeleteModal, AuthorizationInfoModal, SelectAuthorizationFlow }\r\n})\r\nexport default class Authorizations extends Vue {\r\n // local state\r\n authorizations = [] as Array;\r\n searchQuery = \"\";\r\n isBusy = false;\r\n fields = authorizationsFields;\r\n flowTypesEnum = FlowTypesEnum;\r\n\r\n // lifecycle hooks\r\n public created(): void {\r\n this.fetchData();\r\n bus.$on(\"reload\", () => {\r\n this.fetchData();\r\n });\r\n }\r\n\r\n beforeDestroy() {\r\n bus.$off(\"reload\");\r\n }\r\n\r\n // methods & actions\r\n openSelectFlowModal() {\r\n (this.$refs.selectAuthorizationFlowModal as any).open();\r\n }\r\n\r\n updateAuthorization(authorization: Authorization) {\r\n if (authorization.flowType === FlowTypesEnum.ResourceOwnerPasswordCredentialsFlow) {\r\n return {\r\n name: \"updateRopcAuthorization\",\r\n params: { authorizationId: authorization.id }\r\n };\r\n } else if (authorization.flowType === FlowTypesEnum.AuthorizationCodeFlow) {\r\n return {\r\n name: \"updateAcfAuthorization\",\r\n params: { authorizationId: authorization.id }\r\n };\r\n } else if (authorization.flowType === FlowTypesEnum.ClientCredentialFlow) {\r\n return {\r\n name: \"updateCcfAuthorization\",\r\n params: { authorizationId: authorization.id }\r\n };\r\n }\r\n }\r\n\r\n fetchData() {\r\n getAllAuthorizations().then(response => {\r\n this.authorizations = response;\r\n });\r\n }\r\n\r\n get filteredData(): Array {\r\n return this.authorizations.filter(\r\n x =>\r\n this.searchQuery.length === 0 ||\r\n x.credentialsName.toLowerCase().includes(this.searchQuery.toLowerCase())\r\n );\r\n }\r\n\r\n info(id: string) {\r\n (this.$refs.authorizationInfoModal as any).open(id);\r\n }\r\n\r\n deleteAuthorization(id: string, name: string) {\r\n (this.$refs.authorizationDeleteModal as any)\r\n .open(id, name);\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./_Authorizations.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./_Authorizations.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./_Authorizations.vue?vue&type=template&id=183d40a6&scoped=true&\"\nimport script from \"./_Authorizations.vue?vue&type=script&lang=ts&\"\nexport * from \"./_Authorizations.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./_Authorizations.vue?vue&type=style&index=0&id=183d40a6&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"183d40a6\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SelectAuthorizationFlow.vue?vue&type=style&index=0&id=495e8742&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SelectAuthorizationFlow.vue?vue&type=style&index=0&id=495e8742&scoped=true&lang=css&\"","export interface Authorization {\r\n id: string,\r\n clientId: string;\r\n clientSecret: string;\r\n url: string;\r\n redirectUri: string;\r\n scopes: string;\r\n username: string;\r\n password: string;\r\n createdOn: Date;\r\n modifiedOn: Date;\r\n flowType: FlowTypesEnum;\r\n refreshToken: string;\r\n credentialsName: string;\r\n tenantId: string;\r\n authorized: boolean;\r\n lastAuthorizationSuccessDate: Date | null;\r\n lastAuthorizationRequestDate: Date | null;\r\n lastErrorMessage: string;\r\n}\r\n\r\nexport interface AuthorizationInfo {\r\n id: string,\r\n credentialsName: string;\r\n username: string;\r\n createdOn: Date;\r\n modifiedOn: Date;\r\n modifiedById: string;\r\n modifiedBy: string;\r\n flowType: FlowTypesEnum;\r\n lastAuthorizationSuccessDate: Date | null;\r\n lastAuthorizationRequestDate: Date | null;\r\n}\r\n\r\nexport enum FlowTypesEnum\r\n{\r\n AuthorizationCodeFlow,\r\n ClientCredentialFlow,\r\n ResourceOwnerPasswordCredentialsFlow\r\n}\r\n","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./_Authorizations.vue?vue&type=style&index=0&id=183d40a6&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./_Authorizations.vue?vue&type=style&index=0&id=183d40a6&lang=scss&scoped=true&\""],"sourceRoot":""}