Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add #verify method which raises meaningful errors #116

Merged
merged 10 commits into from
Jan 21, 2019
Merged

Conversation

grzuy
Copy link
Contributor

@grzuy grzuy commented Jan 17, 2019

closes #65

lib/webauthn/authenticator_assertion_response.rb Outdated Show resolved Hide resolved
lib/webauthn/authenticator_data.rb Outdated Show resolved Hide resolved
lib/webauthn/authenticator_response.rb Outdated Show resolved Hide resolved
Copy link
Member

@brauliomartinezlm brauliomartinezlm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great @grzuy !!! Thank you so much 🍻

Left you some comments with some feedback. No blockers tho.

Also less prone to errors due to someone changing/adding verification
step and returning false instead of raising
@grzuy grzuy merged commit 77c5cc8 into master Jan 21, 2019
@grzuy grzuy deleted the verify_and_raise branch January 21, 2019 18:52
def valid?(*args)
super
rescue WebAuthn::VerificationError
false
Copy link
Member

@brauliomartinezlm brauliomartinezlm Jan 21, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this one already implemented in the parent class? @grzuy

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide more clarity on which specific validation failed
2 participants