Skip to content
OmniAuth strategy for authentication using different password strategies at once.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
spec
.gitignore
.travis.yml
Gemfile
LICENSE
README.md
Rakefile
omniauth-multipassword.gemspec

README.md

Omniauth::Multipassword

Build Status Code Climate Test Coverage

omniauth-multipassword is a OmniAuth strategy that allows to authenticate again different password strategies at once.

Installation

Add this line to your application's Gemfile:

gem 'omniauth-multipassword'

Add multipassword compatible omniauth strategies you want to use:

gem 'omniauth-internal'
gem 'omniauth-kerberos'

And then execute:

$ bundle

Or install it yourself as:

$ gem install omniauth-multipassword

Usage

Rails.application.config.middleware.use OmniAuth::Strategies::MultiPassword, fields: [ :auth_key ] do |mp|
  mp.authenticator :internal
  mp.authenticator :kerberos
end

Options

** title ** The title text shown on default login form. (default: "Restricted Access")

** fields ** The request parameter names to fetch username and password. (default: [ "username", "password" ])

Compatible Strategies

License

MIT License

Copyright (c) 2012, Jan Graichen

You can’t perform that action at this time.