Basic Auth Plugin
This is a plugin for LocomotiveCMS. It was created to allow LocomotiveCMS designers to add basic auth to specific pages.
Installation
To use this plugin you must be using a version of LocomotiveCMS that has the plugins feature designed by Colibri Software. You can do this by making the following changes to the Gemfile in you app:
- Remove or comment out the following line:
gem 'locomotive_cms', '~> 2.X.X', require: 'locomotive/engine' - Add the following line:
gem 'locomotive_cms', require: 'locomotive/engine', git: 'https://github.com/colibri-software/locomotive_engine.git', branch: 'plugins'
Then add the following lines in your Gemfile to include the plugin:
group :locomotive_plugins do
gem 'locomotive_basic_auth_plugin'
end
Usage
Configuring Plugin
This plugin provides a configuration menu to setup the basic auth. The following are the avaiable options:
- Login – the login name to be used
- Password – The password to be used
- Page fullpath regexp – a regexp that matches all the pages that need to be secured with basic auth
Liquid Drops
No liquid drops are provided
Liquid Tags
No liquid tags are provided
Liquid Filters
No liquid filters are provided