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

[AppCheck] Reset to attestation flow if assertion flow fails #76

Merged
merged 10 commits into from
Oct 4, 2024

Conversation

ncooke3
Copy link
Member

@ncooke3 ncooke3 commented Oct 2, 2024

There are two flows for App Attest: attestation and then assertion. Up until this PR, there was no retry mechanism for the assertion flow. This PR adds behavior to fall back to the attestation phase in the event an assertion cannot be generated by Apple's DeviceCheck framework using the prior attestation artifacts.

Not addressed – changing where some attestation artifacts are stored (currently in user defaults). This is not ideal as the artifact may survive device migration and backup. That being said, such an issue should surface during the assertion flow, which should, with this PR, now fall back to the attestation flow (which is what we would need to do anyway if the artifact could not be found).

Note, I think the split diff is easier to use when reviewing.

@ncooke3 ncooke3 marked this pull request as ready for review October 4, 2024 16:56
@ncooke3 ncooke3 merged commit cf707f9 into main Oct 4, 2024
17 checks passed
@ncooke3 ncooke3 deleted the nc/assertion-retry branch October 4, 2024 19:07
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