Class: Booth::Core::Credentials::WebauthChallenge
- Inherits:
-
Object
- Object
- Booth::Core::Credentials::WebauthChallenge
- Includes:
- Logging, Calls
- Defined in:
- lib/booth/core/credentials/webauth_challenge.rb
Overview
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/booth/core/credentials/webauth_challenge.rb', line 14 def call return Tron.failure :missing_credential, challenge: nil if credential.nil? if credential.registered_authenticator_ids.blank? return Tron.failure :no_known_authenticators, challenge: nil end Tron.success :here_is_your_challenge, options_for_get: .to_json, challenge: .challenge end |