Skip to content

punkave/pk-basic-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircleCI

pk-basic-auth

HTTP basic auth middleware for ApostropheCMS. This module uses express-basic-auth.

This module provides HTTP basic auth in addition to ApostropheCMS's login. This does not log a user into ApostropheCMS. One intended use case of this module is to lockdown an application from the public before the application launches to a set of one or multiple static users.

Configuration

You should configure usernames and passwords in data/local.js.

For a single user:

module.exports = {
  modules: {
    'pk-basic-auth': {
      users: {
        'admin': 'demo'
      }
    }
  }
}

Options

users: Takes one or many comma seperated key/value pairs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published