1.0.1 • Published 4 years ago

@allinmkt/acl v1.0.1

Weekly downloads
4
License
ISC
Repository
-
Last release
4 years ago

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/acl

Usage

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