[go: up one dir, main page]

Skip to content

Implement main passkey backend

Related to #569932

What does this MR do and why?

Implement main passkey backend (controllers, services, helpers & routing)

Screenshots or screen recordings

  • BE demo to create and delete passkeys programmatically
  • Integrates with the conditional UX & FE logic for default passkeys when at least 1 2FA method is enabled
Demo
passkey_controller_demo

How to set up and validate locally

  • Open a rails console
gdk rails console
  • Create a user with a WebAuthn registration and verify model changes.
user = User.first
auth1 = user.passkeys.create(
  name: 'LastPass',
  credential_xid: SecureRandom.hex,
  public_key: SecureRandom.hex,
  counter: 0,
  last_used_at: 20.days.from_now,
  authentication_mode: :passwordless
)

auth1.last_used_at
auth1.passkey_eligible

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Hakeem Abdul-Razak

Merge request reports

Loading