@allinmkt/cas
v1.0.47
Published
Central Authentication Service (CAS) client for Node.js
Downloads
51
Readme
CAS
Central Authentication Service (CAS) client for Node.js
This module handle all the communication between application and CAS API
Installation
via npm:
$ npm install @allinmkt/cas
Usage
Params
Those params are needed to CAS work successfully
| Name | Description | | --- | ----------- | | store | All data in your Vuex | | redirect | Needs to be True to CAS redirect the user to login page | | application | Application ID signed on CAS database | | secret | JWT secret to CAS handle with the verify part |
Setup
import cas from '@allinmkt/cas'
Vue.use(cas, {
store,
redirect: true,
application: process.env.VUE_APP_ID,
secret: process.env.VUE_APP_JWT_SECRET
})
Instance with Vuejs
Vue.CAS.getPerms().then(data => {
new Vue({
router,
store,
i18n,
vuetify,
async created() {},
render: h => h(App)
}).$mount("#app")
})