eq-digest-authentication
Digest authentication module for Eq applications
Last updated 8 months ago by eq-inc .
Apache-2.0 · Repository · Bugs · Original npm · Tarball
$ cnpm install eq-digest-authentication 
SYNC missed versions from official npm registry.

eq-digest-authentication

Digest authentication module for Eq applications.

Example

const express = require('express'),
    digest_authentication = require('eq-digest-authentication'),
    digest_authentication_strategy = require('eq-digest-authentication-strategy'),
    users = [
        {username: 'username1', password: 'password1'},
        {username: 'username2', password: 'password2'}
    ],
    options = {
        realm: 'realm',
        qop: 'auth',
        algorithm: 'sha-256'
    },
    app = express(),
    strategy = digest_authentication_strategy.object(users, options),
    digest_authentication = digest_authentication(strategy, options);

app.use(digest_authentication.middleware());
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 10
Dependencies (2)
Dev Dependencies (5)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |