Add userpass authentication
authorLunar <lunar@anargeek.net>
Mon, 19 Dec 2016 12:51:03 +0000 (13:51 +0100)
committerLunar <lunar@anargeek.net>
Tue, 20 Dec 2016 12:38:13 +0000 (13:38 +0100)
commit114905c7b8fb6726b57d4607129f84db79e97338
tree1d5d5bf198b77966813c620fe3ebeaef9def498a
parent12da3e86a02946420dac7f5502576254e4706e04
Add userpass authentication

The `userpass` authentication mechanism prompts for a user and password
to perform an upload. The credentials are stored as pairs of login/password in
the local configuration. Password are stored in an encrypted form using
bcrypt().

`userpass` configured with a single account can be used instead of `simplepass`
to allow users to make their browser retain the upload credentials.

Based on a patch from Rowan Thorpe.
14 files changed:
Gemfile.lock
INSTALL
conf/settings-userpass.yml [new file with mode: 0644]
coquelicot.gemspec
features/auth/userpass.feature [new file with mode: 0644]
features/step_definitions/auth/userpass.rb [new file with mode: 0644]
lib/coquelicot/auth/userpass.rb [new file with mode: 0644]
po/coquelicot.pot
po/de/coquelicot.po
po/es/coquelicot.po
po/fr/coquelicot.po
public/javascripts/coquelicot.auth.userpass.js [new file with mode: 0644]
spec/coquelicot/auth/userpass_spec.rb [new file with mode: 0644]
views/auth/userpass.haml [new file with mode: 0644]