2013-04-21 00:32:23 -04:00
|
|
|
require 'devise'
|
|
|
|
|
|
|
|
$: << File.expand_path('..', __FILE__)
|
|
|
|
|
|
|
|
require 'devise_kerberos_authenticatable/model'
|
|
|
|
require 'devise_kerberos_authenticatable/strategy'
|
|
|
|
require 'devise_kerberos_authenticatable/kerberos_adapter'
|
|
|
|
|
2014-01-31 07:31:11 -05:00
|
|
|
module Devise
|
|
|
|
#Kerberos realm to use
|
|
|
|
mattr_accessor :kerberos_realm
|
|
|
|
@@kerberos_realm = ""
|
|
|
|
end
|
|
|
|
|
2013-04-21 00:32:23 -04:00
|
|
|
Devise.add_module(
|
|
|
|
:kerberos_authenticatable,
|
|
|
|
:strategy => true,
|
|
|
|
:model => 'devise_kerberos_authenticatable/model',
|
2014-01-29 15:59:43 -05:00
|
|
|
:route => :session,
|
|
|
|
:controller => :sessions
|
|
|
|
)
|