@allinmkt/cas

Central Authentication Service (CAS) client for Node.js

Usage no npm install needed!

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

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")
})