GithubHelp home page GithubHelp logo

kberzinch / cas-server-mock Goto Github PK

View Code? Open in Web Editor NEW

This project forked from veo-labs/cas-server-mock

1.0 1.0 0.0 25 KB

Really simple basic mock for Apereo CAS server

License: GNU Affero General Public License v3.0

JavaScript 93.29% HTML 6.71%

cas-server-mock's Introduction

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

sudo npm install -g https://github.com/kberzinch/cas-server-mock

Usage

Start a fake CAS server with the following command:

csm --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

cas-server-mock's People

Contributors

kberzinch avatar maxime-beguin avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.