This package has been deprecated

Author message:

Use jscas-pg-registries

cas-server-pg-service-registry

0.3.1 • Public • Published

cas-server-pg-service-registry

This module provides a reference implementation of a service registry plugin for cas-server.

Intializing the plugin requires a knex data source passed in via the phase one context.

Exported End Points

/pgServiceRegistry/addService

This plugin adds an endpoint to the CAS server that allows new services to be added -- /pgServiceRegistry/addService. This end point should be blocked from public access.

To add a new service simply POST a JSON object to the end point that matches:

{
  "name": "A service name",
  "comment": "A description of the service. Can be null.",
  "url": "http://a.service.url/"
}

Note: the URL can be a POSIX compliant regular expression. See the PostgreSQL documentation for more detail.

License

MIT License

Package Sidebar

Install

npm i cas-server-pg-service-registry

Weekly Downloads

3

Version

0.3.1

License

MIT

Last publish

Collaborators

  • jsumners