class OmniAuth::Strategies::Kerberos
Public Class Methods
new(app, *args, &block)
click to toggle source
Calls superclass method
# File lib/omniauth/strategies/kerberos.rb, line 11 def initialize(app, *args, &block) super @krb5 = ::Krb5Auth::Krb5.new end
Public Instance Methods
authenticate(username, password)
click to toggle source
# File lib/omniauth/strategies/kerberos.rb, line 21 def authenticate(username, password) @krb5.get_init_creds_password(username, password) rescue ::Krb5Auth::Krb5::Exception false end