https://github.com/jgraichen/omniauth-multipassword
OmniAuth strategy for authentication using different password strategies at once.
https://github.com/jgraichen/omniauth-multipassword
authentication omniauth omniauth-strategy password ruby
Last synced: 3 months ago
JSON representation
OmniAuth strategy for authentication using different password strategies at once.
- Host: GitHub
- URL: https://github.com/jgraichen/omniauth-multipassword
- Owner: jgraichen
- License: mit
- Created: 2012-04-21T11:10:08.000Z (about 13 years ago)
- Default Branch: main
- Last Pushed: 2025-02-17T05:50:22.000Z (5 months ago)
- Last Synced: 2025-04-06T16:46:17.697Z (3 months ago)
- Topics: authentication, omniauth, omniauth-strategy, password, ruby
- Language: Ruby
- Size: 53.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Omniauth::Multipassword
[](https://rubygems.org/gems/omniauth-multipassword)
[](https://github.com/jgraichen/omniauth-multipassword/actions)
[](https://app.codecov.io/gh/jgraichen/omniauth-multipassword)
[](https://codeclimate.com/github/jgraichen/omniauth-multipassword)**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:
```ruby
gem 'omniauth-multipassword'
```Add multipassword compatible omniauth strategies you want to use:
```ruby
gem 'omniauth-internal'
gem 'omniauth-kerberos'
```And then execute:
```console
bundle
```Or install it yourself as:
```console
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 © 2012, Jan Graichen