Socket
Socket
Sign inDemoInstall

cas-server-auth-json

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cas-server-auth-json

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


Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

cas-server-auth-json

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

Example JSON data file:

{
  "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:

{
  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 file.

Keywords

FAQs

Package last updated on 15 Nov 2016

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