# cas-server-auth-json

> A simple authentication plugin for cas-server that uses a JSON credential store

Latest version **0.1.0** (published 2016-11-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install cas-server-auth-json
pnpm add cas-server-auth-json
yarn add cas-server-auth-json
bun add cas-server-auth-json
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2016-11-15 |
| First published | 2016-11-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | James Sumners |
| Maintainers | jsumners |
| Keywords | cas-server, cas, apereo, jasig |

## Links

- npm: https://www.npmjs.com/package/cas-server-auth-json
- Repository: https://github.com/jscas/cas-server-auth-json
- Issues: https://github.com/jscas/cas-server-auth-json/issues
- npm.io page: https://npm.io/package/cas-server-auth-json

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 0.1.0 (latest) — 2016-11-15

## README

# cas-server-auth-json

This module provides a simple reference implementation of an authentication
plugin for [cas-server][cs]. The plugin reads a JSON file and uses the parsed
data to validate credentials.

Example JSON data file:

```javascript
{
  "luser": {
    "password": "123456",
    "firstName": "Local",
    "lastName": "User"
  }
}
```

Keys on the parent object represent usernames. The only required property of a
user object is the `password` property. Any other properties will be returned
as extra attributes in a CAS 3.0 service validation response.

When the plugin is initialized it can be passed a configuration object that
specifies the data file:

```javascript
{
  credentialStore: '/path/to/data.json'
}
```

Note: the data file must have a `.json` extention. Otherwise it will not be
parsed correctly. Also, if you do not supply a file the plugin will default
to using the included [store.example.json](store.example.json) file.

[cs]: https://github.com/jscas/cas-server

---
_Source: https://npm.io/package/cas-server-auth-json · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
