Class: Booth::Logins::Transitions::Create::WebauthAuthenticationVerification

Inherits:
Object
  • Object
show all
Includes:
Concerns::Transition
Defined in:
lib/booth/userland/logins/transitions/create/webauth_authentication_verification.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.applicable?(params:) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/booth/userland/logins/transitions/create/webauth_authentication_verification.rb', line 8

def self.applicable?(params:)
  params[:webauth] && params[:type]
end

Instance Method Details

#callObject



12
13
14
15
16
17
# File 'lib/booth/userland/logins/transitions/create/webauth_authentication_verification.rb', line 12

def call
  do_check_stale_session
    .on_success { do_find_credential }
    .on_success { do_find_challenge }
    .on_success { do_check_webauth }
end