thaljef/Pinto-Server — pull request #2 by karenetheridge (2012-03-21 23:35:40+00:00)
Title: authentication support

If the --auth flag is used when starting up pinto-server, an Auth backend is added via middleware.

I've tested this via:

pinto-server --auth backend=Passwd --auth path=passwd

...with "passwd" being a file in apache .htpasswd format. (/etc/passwd will also do, if your system doesn't store passwords in another file.) -> see https://metacpan.org/module/Authen::Simple::Passwd

..and by hitting this server with: curl -v --user user:pass -d '' http://localhost:3000/action/list