@allinmkt/cas

1.0.47 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @allinmkt/cas

Weekly Downloads

1

Version

1.0.47

License

ISC

Unpacked Size

14.4 kB

Total Files

27

Last publish

Collaborators

  • b-r-u-n-o
  • marlonbranco
  • diegodhrv
  • r-a-f-a
  • mlimaallin