mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-02 05:06:51 +08:00
**Previously**, passkey authentication called `cose_algorithm.hash_function` to verify signatures, but `COSE::Algorithm::EdDSA` does not implement `hash_function` (EdDSA has the hash built into the algorithm). This caused a `NoMethodError 500` for any user who registered a passkey with an EdDSA-based authenticator. **This commit** uses the COSE gem's own `cose_algorithm.verify` method, which correctly dispatches signature verification for all algorithm types — including EdDSA, which passes nil as the digest internally. |
||
|---|---|---|
| .. | ||
| authentication_service.rb | ||
| base_validation_service.rb | ||
| challenge_generator.rb | ||
| registration_service.rb | ||