项目作者: jgraichen

项目描述 :
OmniAuth strategy for kerberos authentication.
高级语言: Ruby
项目地址: git://github.com/jgraichen/omniauth-kerberos.git
创建时间: 2012-04-21T11:07:19Z
项目社区:https://github.com/jgraichen/omniauth-kerberos

开源协议:MIT License

下载


Omniauth::Strategies::Kerberos

Build Status
Code Climate
Test Coverage

omniauth-kerberos is a simple OmniAuth strategy to authenticate using a Kerberos server. omniauth-kerberos can be used as an authenticator for OmniAuth MultiPassword.

Installation

Add this line to your application’s Gemfile:

  1. gem 'omniauth-kerberos'

And then execute:

  1. $ bundle

Or install it yourself as:

  1. $ gem install omniauth-kerberos

Kerberos development headers are required to build dependencies.

On Debian try:

  1. $ sudo apt-get install libkrb5-dev

Usage

Use omniauth-kerberos like any other OmniAuth strategy:

  1. Rails.application.config.middleware.use OmniAuth::Builder do
  2. provider :kerberos
  3. end

You still need to configure your system for Kerberos usage like specifying realms. If you has your own login form you can specify the fields to use:

  1. Rails.application.config.middleware.use OmniAuth::Builder do
  2. provider :kerberos, :fields => [ :login, :pwd ]
  3. 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" ])

License

MIT License

Copyright (c) 2012, Jan Graichen