Sha256: 444d5aebb51f012d1ace3c58aa6b1d97d16a3e28b09d86291c0a2ff9561ed0f5

Contents?: true

Size: 1.65 KB

Versions: 3

Compression:

Stored size: 1.65 KB

Contents

# Omniauth::Multipassword

[![Build Status](https://travis-ci.org/jgraichen/omniauth-multipassword.svg?branch=master)](https://travis-ci.org/jgraichen/omniauth-multipassword)
[![Code Climate](https://codeclimate.com/github/jgraichen/omniauth-multipassword/badges/gpa.svg)](https://codeclimate.com/github/jgraichen/omniauth-multipassword)
[![Test Coverage](https://codeclimate.com/github/jgraichen/omniauth-multipassword/badges/coverage.svg)](https://codeclimate.com/github/jgraichen/omniauth-multipassword/coverage)

**omniauth-multipassword** is a [OmniAuth](https://github.com/intridea/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

```ruby
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

* [omniauth-internal](https://github.com/jgraichen/omniauth-internal)
* [omniauth-kerberos](https://github.com/jgraichen/omniauth-kerberos)


## License

[MIT License](http://www.opensource.org/licenses/mit-license.php)

Copyright (c) 2012, Jan Graichen

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
omniauth-multipassword-2.0.1 README.md
omniauth-multipassword-2.0.0.rc1 README.md
omniauth-multipassword-0.4.2 README.md