This is a very simple example to demonstrate how OmniAuth::PAM can be used within a primitive Sinatra application.
You can start it by doing:
sudo apt-get install bundler # or: sudo gem install bundler
bundle install --path vendor/bundle
bundle exec rackup
Preferably from within the Vagrantfile included in the root of the repository.
- Go to http://localhost:9292
- You'll be redirected to a login page.
- Enter a system user account (for example: vagrant/vagrant).
- Then, you'll be redirected to another page listing the auth hash details.