diff --git a/backend/handler/webauthn.go b/backend/handler/webauthn.go index ba693835f..2b5cdfe5e 100644 --- a/backend/handler/webauthn.go +++ b/backend/handler/webauthn.go @@ -50,7 +50,7 @@ func NewWebauthnHandler(cfg *config.Config, persister persistence.Persister, ses RPDisplayName: cfg.Webauthn.RelyingParty.DisplayName, RPID: cfg.Webauthn.RelyingParty.Id, RPOrigins: cfg.Webauthn.RelyingParty.Origins, - AttestationPreference: protocol.PreferNoAttestation, + AttestationPreference: protocol.PreferDirectAttestation, AuthenticatorSelection: protocol.AuthenticatorSelection{ RequireResidentKey: &f, ResidentKey: protocol.ResidentKeyRequirementDiscouraged, @@ -113,7 +113,7 @@ func (h *WebauthnHandler) BeginRegistration(c echo.Context) error { ResidentKey: protocol.ResidentKeyRequirementRequired, UserVerification: protocol.UserVerificationRequirement(h.cfg.Webauthn.UserVerification), }), - webauthn.WithConveyancePreference(protocol.PreferNoAttestation), + webauthn.WithConveyancePreference(protocol.PreferDirectAttestation), // don't set the excludeCredentials list, so an already registered device can be re-registered )