Skip to content

jgraichen/omniauth-kerberos

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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:

gem 'omniauth-kerberos'

And then execute:

$ bundle

Or install it yourself as:

$ gem install omniauth-kerberos

Kerberos development headers are required to build dependencies.

On Debian try:

$ sudo apt-get install libkrb5-dev

Usage

Use omniauth-kerberos like any other OmniAuth strategy:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :kerberos
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:

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

About

OmniAuth strategy for kerberos authentication.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages