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: store webauthn credential backup info #554

Merged
merged 3 commits into from
Feb 7, 2023

Conversation

FreddyDevelop
Copy link
Contributor

@FreddyDevelop FreddyDevelop commented Feb 6, 2023

Description

Store the flags backup_eligible and backup_state for each webauhn credential and update them if they have changed. These flags can later be used to inform users if they should add a second credential, because the first is not backed up.

Implementation

Added two new column to the webauthn credential table and check if the flags have changed.

Tests

Check if the flags are set correctly when a webauthn credential is created with an authenticator that has no backup functionality and one with backup functionality.

backend/handler/webauthn.go Outdated Show resolved Hide resolved
@FreddyDevelop FreddyDevelop merged commit bcb406b into main Feb 7, 2023
@like-a-bause like-a-bause deleted the feat-webauthn-backup-states branch February 9, 2023 09:22
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.

2 participants