1.0.10 • Published 4 years ago
cas-module v1.0.10
CAS-MODULE
Usage
After instaling cas-module, start the package from Vue and pass the required params
import cas from 'cas-module'
Vue.use(cas, {store, redirect: true, application: process.env.VUE_APP_ID, secret: process.env.VUE_APP_JWT_SECRET})
new Vue({
el: '#app',
router,
store,
cas,
components: { App },
template: '<App/>'
})
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 |