omniauth-pam to your Gemfile, or:
gem install omniauth-pam
libpam0g-dev is needed to install on Debian and Ubuntu. An example
Vagrantfile is provided to test this out.
require "omniauth" require "omniauth-pam" use Rack::Session::Cookie, secret: "a_random_hash" use OmniAuth::Strategies::PAM get "/auth/:provider/callback" do puts request.env['omniauth.auth'] end
See the example/ directory.
- Fork it ( https://github.com/nickcharlton/omniauth-pam/fork )
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create a new Pull Request
Copyright (c) 2018 Nick Charlton. MIT Licensed.