Module: Warden::WebAuthn::RackHelpers

Included in:
StrategyHelpers
Defined in:
lib/warden/webauthn/rack_helpers.rb

Overview

Helpers that can be mixed in to any Rack middleware or application, in order to setup the environment for ‘Warden::WebAuthn`, such as the Relying Party

Instance Method Summary collapse

Instance Method Details

#relying_party_keyObject



8
9
10
# File 'lib/warden/webauthn/rack_helpers.rb', line 8

def relying_party_key
  "warden.webauthn.relying_party"
end

#set_relying_party_in_request_envObject



12
13
14
# File 'lib/warden/webauthn/rack_helpers.rb', line 12

def set_relying_party_in_request_env
  request.env[relying_party_key] = relying_party
end