eq-digest-authentication

0.1.6 • Public • Published

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());

Readme

Keywords

none

Package Sidebar

Install

npm i eq-digest-authentication

Weekly Downloads

0

Version

0.1.6

License

Apache-2.0

Unpacked Size

24.4 kB

Total Files

9

Last publish

Collaborators

  • eq-developer
  • fujimaki-k
  • misupopo