Is it possible to authenticate user against the local user database on linux/mac? I would like to create users locally on linux and then force authentication using sinatra or any other suggested ruby gem (no rails knowledge :()
I don't have any database and my app is so simple it should look like this:
require 'sinatra'
use Rack::Auth::Basic, "Restricted Area" do |username, password|
[username, password] == ['admin', 'admin']
end
get '/' do
"You're welcome"
end