@allinmkt/acl

Access Control Leve (ACL) client for support CAS

Usage no npm install needed!

<script type="module">
  import allinmktAcl from 'https://cdn.skypack.dev/@allinmkt/acl';
</script>

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