1
0
Fork 0
devise-kerberos-authenticat.../lib/devise-kerberos-authenticatable.rb
2014-01-31 12:31:11 +00:00

21 lines
567 B
Ruby

require 'devise'
$: << File.expand_path('..', __FILE__)
require 'devise_kerberos_authenticatable/model'
require 'devise_kerberos_authenticatable/strategy'
require 'devise_kerberos_authenticatable/kerberos_adapter'
module Devise
#Kerberos realm to use
mattr_accessor :kerberos_realm
@@kerberos_realm = ""
end
Devise.add_module(
:kerberos_authenticatable,
:strategy => true,
:model => 'devise_kerberos_authenticatable/model',
:route => :session,
:controller => :sessions
)