product-monitor.plugin.local-auth
Adds name and password authentication to product monitor, and enables the secure pages feature
Last updated 8 months ago by johnbeech .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install product-monitor.plugin.local-auth 
SYNC missed versions from official npm registry.

Product Monitor Local Auth Plugin

Adds name and password authentication to product monitor, and enables the secure pages feature.

Development

npm install
npm test

Exposed methods

plugin()

Creates a new instance of the plugin.

var plugin = require('product-monitor.plugin.local-auth')();

plugin.apply(app)

Applies the plugin to a product-monitor app.

  • Registers POST /auth/login
  • Registers GET /auth/logout
  • Registers GET /docs/login
  • Enables the secure pages feature of product-monitor

plugin.info()

Returns the name, description, and keywords for the plugin:

{
    name: 'product-monitor.plugin.sample',
    description: 'Adds name and password authentication to product monitor, and enables the secure pages feature',
    keywords: [
      'product-monitor',
      'nodejs',
      'plugin',
      'passport',
      'local-auth'
    ]
}

plugin.getConfig()

Returns the config applied to the plugin.

plugin.setConfig(pluginConfig)

Changes the config applied to the plugin.

Change Log

1.2.1

  • Remove body-parser dependency (unused)
  • Make standard a dev dependency

1.2.0

  • Implement standard js linting and remove dead code

1.1.0

  • Implemented against product-monitor users API

1.0.4

  • Fixed console log messages

1.0.3

  • Fixed POST url in login form

1.0.2

  • Collapsed common methods into product-monitor
  • Added call to application.enableAuthentication(mode)

1.0.1

  • Made login form look neater

1.0.0

  • Initial release

Current Tags

  • 1.2.1                                ...           latest (8 months ago)

6 Versions

  • 1.2.1                                ...           8 months ago
  • 1.2.0                                ...           8 months ago
  • 1.1.0                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (4)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |