UNPKG

jscas-server

Version:

An implementation of Apereo's CAS protocol

13 lines (10 loc) 360 B
'use strict' const fp = require('fastify-plugin') const casInterface = require('../casInterface') module.exports = fp(function casInterfacePlugin (fastify, options, next) { fastify.decorate('jscasInterface', casInterface({ ticketRegistry: fastify.jscasPlugins.ticketRegistry, serviceRegistry: fastify.jscasPlugins.serviceRegistry })) next() })