Skip to content

eq-inc/eq-digest-authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Digest authentication module for Eq applications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published