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

credProtect check in CTAP1 #629

Merged
merged 1 commit into from
May 9, 2023

Conversation

kaczmarczyck
Copy link
Collaborator

We accidentally lost this check in #516. I refactored some of the filters for better style.

The actual difference in logic is just one line in CTAP1 authenticate, everything else is style, a test and the order in which we convert and filter the credentials:

let credential_source = filter_listed_credential(credential_source, false)
            .ok_or(Ctap1StatusCode::SW_WRONG_DATA)?;

We accidentally lost this check in google#516. I refactored some of the
filters for better style.

The actual difference in logic is just one line in CTAP1 authenticate,
everything else is style, a test and the order in which we convert and
filter the credentials:

```
let credential_source = filter_listed_credential(credential_source, false)
            .ok_or(Ctap1StatusCode::SW_WRONG_DATA)?;
```
@kaczmarczyck kaczmarczyck requested a review from ia0 May 9, 2023 17:17
@coveralls
Copy link

Coverage Status

Coverage: 96.191% (+0.01%) from 96.178% when pulling c94fbb8 on kaczmarczyck:cred-protect-unwrap into 6fb7e19 on google:develop.

@kaczmarczyck kaczmarczyck merged commit fbf07d7 into google:develop May 9, 2023
@kaczmarczyck kaczmarczyck deleted the cred-protect-unwrap branch May 9, 2023 20:44
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.

3 participants