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

refactor: make x5c nomenclature more consistent #279

Closed grzuy closed 4 years ago

grzuy commented 4 years ago

I like it!

What do you think about using attestation_trust_path on AttestationStatement::FidoU2f#valid? instead of [attestation_certificate]? Just for the sake of consistency among formats.

Good call. Will do :+1:

Also, on AttestationStatement::AndroidSafetynet, once we return the whole certificate chain (instead of only the leaf certificate) we could redefine attestation_trust_path to return the certificate chain and ditch attestation_certificate

Right. I am adding a comment to mention this inconsistency but we can fix it on a separate PR, given it doesn't fit into a "refactor" PR like this one.

grzuy commented 4 years ago

@padulafacundo Thanks. Updated.