Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cas-server-mock

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cas-server-mock

Simple mock for Apereo CAS server

  • 4.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Apereo CAS simple server mock

Really simple basic mock for Apereo CAS server. This should not be used in production environment, it is just for test purpose, nothing more.

Install

npm install cas-server-mock

Usage

Start a fake CAS server with the following command:

npx cas-server-mock --port=3004 --database=/tmp/users.json

With:

  • --port option The HTTP port the server will listen to (default to 3004)
  • --database The path to the JSON file containing the database of users (see below)

Nb: If process is launched as a sub process it will send a message to its parent process when starting:

{status: 'started'}

CAS users

The database user must be a simple JSON file containing an array of users. Each user must have a name property used to authenticate the user and a attributes property with as many properties as you want. Attributes values must be either Strings or Arrays.

[
  {
    "name": "user-id", // The id of the user to log with
    "attributes": { // User attributes
      "stringAttribute": "value",
      "arrayAttribute": ["arrayValue"],
      [...]
    }
  }
]

Contributors

Maintainer: Veo-Labs

License

AGPL

Keywords

FAQs

Package last updated on 19 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc