cedarcode / webauthn-ruby

WebAuthn ruby server library ― Make your Ruby/Rails web server become a conformant WebAuthn Relying Party
https://rubygems.org/gems/webauthn
MIT License
658 stars 55 forks source link

feat: Allow specifying allow_credentials for FakeClient#get #335

Closed kingjan1999 closed 3 years ago

kingjan1999 commented 3 years ago

This PR adds yet another parameter to FakeClient#get to allow specifying allowed credentials when choosing from multiple matching credentials for the same RP id in the underlying FakeAuthenticator (similar to how it's done in the real world).

This can be useful for testing scenarios where a single authenticator is used for multiple accounts / users.

kingjan1999 commented 3 years ago

Thank you for reviewing @grzuy and sorry for the late reaction. I replied to your helpful comments!

grzuy commented 3 years ago

Thanks again!

grzuy commented 3 years ago

Released in v2.5.0.