@igi2k/shield
Authentication shield for web apps
Last updated a month ago by igi2k .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @igi2k/shield 
SYNC missed versions from official npm registry.

Shield

Authentication shield for web apps

Configuration

Configuration is read form config/config.json.

apps

Define routing or application modules.

  • routing (proxy)
    {
      "name": "Application",
      "path": "app",
      "alias": "/test/app"
      "url": "http://localhost:8080"
    }
  • application module
    {
      "name": "Application",
      "path": "app",
      "module": "app-module",
      "config": {
        "compress": true
      }
    }

hostname

Setting to limit listening interfaces.

port

Custom listening port, default is 8080.

tls

Enables https module by specifying certificate/key pair in pem format.

  • key - private key
  • cert - public certificate
  • ca - certificate issuing authority

sso

Enables third party authentication through json web tokens.

  • url - handshake server
  • cert - server certificate in pem format

plugins

Customization of internal services, when you need to pass config it has form of an array [ module, config (optional) ]

  • authentication - authentication provider
    1. BasicAuthentication (default)
    2. CertificateAuthentication
  • logging - custom logging output
    async (morgan, executeSync, config) => {}
    

Current Tags

  • 0.7.1                                ...           latest (a month ago)

2 Versions

  • 0.7.1                                ...           a month ago
  • 0.6.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 2
This Month 3
Last Day 0
Last Week 0
Last Month 15
Dependencies (8)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |