Adds a webauthn error message concern for human friendly UX

Related to #562163

What does this MR do and why?

What?

  • Adds webauthn error message conern
  • Makes the passkey services use this concern
  • WebAuthn service update is here

Why?

  • Makes webauthn error human-readable

How to set up and validate locally

You can view the disparate human-readable error messages from the webauthn gem.

  • spec/services/authn/passkey/register_service_spec.rb
      it 'returns a Service.error' do
        expect(register_service).to be_a(ServiceResponse)
        expect(register_service).to be_error
        puts "service message #{register_service.message}"
        expect(register_service.message).to be_present
      end
  • spec/services/authn/passkey/authenticate_service_spec.rb
      it 'returns a Service.error' do
        expect(register_service).to be_a(ServiceResponse)
        expect(register_service).to be_error
        puts "service message #{authenticate_service.message}" 
        expect(register_service.message).to be_present
      end

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