Skip to content

chore: [SIW-3425] refactor MobileAttestationService class#678

Merged
silvicir merged 14 commits intomasterfrom
SIW-3425-refactor-mobile-attestation-service
Jan 29, 2026
Merged

chore: [SIW-3425] refactor MobileAttestationService class#678
silvicir merged 14 commits intomasterfrom
SIW-3425-refactor-mobile-attestation-service

Conversation

@silvicir
Copy link
Contributor

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Refactors the MobileAttestationService flow by moving platform-specific decoding/parsing responsibilities and simplifying the iOS/Android validation pipeline.

Changes:

  • Moved iOS CBOR decoding and assertion base64 parsing out of the iOS module and into MobileAttestationService.
  • Refactored Android attestation validation to accept a pre-parsed X509Certificate[] chain and Android assertion validation to accept parsed Google credentials.
  • Replaced parallel/aggregated multi-validation logic with sequential fallbacks (iOS → Android) and introduced shared parsing helpers.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
apps/io-wallet-user-func/src/infra/mobile-attestation-service/ios/index.ts iOS validators now take already-decoded attestation/assertion structures.
apps/io-wallet-user-func/src/infra/mobile-attestation-service/index.ts Centralized parsing (CBOR/X509/base64/credentials) and refactored fallback orchestration.
apps/io-wallet-user-func/src/infra/mobile-attestation-service/android/index.ts Android validators now accept pre-parsed inputs (X509 chain, Google creds) and removed internal parsing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@silvicir silvicir marked this pull request as ready for review January 29, 2026 09:37
@silvicir silvicir requested a review from a team as a code owner January 29, 2026 09:37
@silvicir silvicir requested review from LazyAfternoons, ale-mazz and grausof and removed request for a team January 29, 2026 09:37
@silvicir silvicir merged commit f78da99 into master Jan 29, 2026
6 checks passed
@silvicir silvicir deleted the SIW-3425-refactor-mobile-attestation-service branch January 29, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants