@allinmkt/acl
v1.0.1
Published
Access Control Leve (ACL) client for support CAS
Keywords
Readme
ACL
Access Control Leve (ACL) client for support CAS
This module handle with the permissions for each user in all applications
Installation
via npm:
$ npm install @allinmkt/aclUsage
Setup
import cas from '@allinmkt/cas'
import acl from '@allinmkt/acl'
Vue.use(cas, {
store,
redirect: true,
application: process.env.VUE_APP_ID,
secret: process.env.VUE_APP_JWT_SECRET
})
Vue.CAS.getPerms().then(data => {
Vue.use(acl, { store: data });
new Vue({
router,
store,
async created() {},
render: h => h(App)
}).$mount("#app");
});OBS: The Vue.use must be inside the instance of CAS with Vuejs.
OBS 2: ACL depends on CAS to work correctly
