Class: OmniAuth::Strategies::Yubikey

Inherits:
Object
  • Object
show all
Includes:
OmniAuth::Strategy
Defined in:
lib/omniauth/strategies/yubikey.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#otp_idObject

Returns the value of attribute otp_id.



15
16
17
# File 'lib/omniauth/strategies/yubikey.rb', line 15

def otp_id
  @otp_id
end

Instance Method Details

#request_phaseObject



17
18
19
20
21
22
23
# File 'lib/omniauth/strategies/yubikey.rb', line 17

def request_phase
  if env["REQUEST_METHOD"] == "GET"
    get_credentials
  else
    perform
  end
end