Module: Practical::Auth::Passkeys::WebAuthnDebugContext

Included in:
EmergencyRegistrations
Defined in:
app/controllers/concerns/practical/auth/passkeys/web_authn_debug_context.rb

Instance Method Summary collapse

Instance Method Details

#honeybadger_webauthn_contextObject



4
5
6
7
8
9
10
11
12
# File 'app/controllers/concerns/practical/auth/passkeys/web_authn_debug_context.rb', line 4

def honeybadger_webauthn_context
  debug_credential = WebAuthn::Credential.from_create(parsed_credential, relying_party: relying_party)
  debug_client_data_json = debug_credential.response.client_data.as_json

  return {
    debug_client_data_json: debug_client_data_json,
    relying_party_json: relying_party.as_json
  }
end