class OmniAuth::Strategies::PAM
Public Instance Methods
callback_phase()
click to toggle source
Calls superclass method
# File lib/omniauth/strategies/pam.rb, line 26 def callback_phase unless Rpam2.auth(options[:service], uid, request["password"]) return fail!(:invalid_credentials) end super end
request_phase()
click to toggle source
# File lib/omniauth/strategies/pam.rb, line 16 def request_phase OmniAuth::Form.build( title: (options[:title] || "Authenticate"), url: callback_path, ) do |field| field.text_field 'Username', 'username' field.password_field 'Password', 'password' end.to_response end