-
Notifications
You must be signed in to change notification settings - Fork 103
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
chore(IT Wallet): [SIW-975,SIW-976] Wallet instance registration and attestation retrieval #5861
Conversation
This reverts commit 413bb3f.
…T-342-react-native-upgrade
await WalletInstance.createWalletInstance({ | ||
integrityContext, | ||
walletProviderBaseUrl: itwWalletProviderBaseUrl | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have to pass the appFetch
of the app which includes our custom headers, otherwise this won't work in production. Also, we have to manage the LV 401 status code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in 1c430ba
Since we are not in a saga we have to implement custom logic to handle the 401. I think we should address it in a dedicated task.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I craeated a task at the top of the backlog since this might be a blocking issue. Thanks.
await generate(ephemeralKey); | ||
const wiaCryptoContext = createCryptoContextFor(ephemeralKey); | ||
|
||
return WalletInstanceAttestation.getAttestation({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above (line 53).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
> [!Warning] > This PR depends on #5861 ## Short description This PR adds a lifecycle reducer to IT Wallet. The goal of this reducer is to persist the wallet instance state (installed, operational, valid, deactivated), so it is available in the global store. ## List of changes proposed in this pull request - Add persisted lifecycle ITW reducer - Update the wallet instance state from the eID issuance machine - Refactor persist logic ## How to test Run the app and check that `features.itWallet.lifecycle` gets updated after the eID issuance. --------- Co-authored-by: Cristiano Tofani <[email protected]> Co-authored-by: Fabio Bombardi <[email protected]> Co-authored-by: LazyAfternoons <[email protected]> Co-authored-by: Federico Mastrini <[email protected]> Co-authored-by: Damiano Plebani <[email protected]> Co-authored-by: Alice Di Rico <[email protected]> Co-authored-by: Mario Perrotta <[email protected]> Co-authored-by: LazyAfternoons <[email protected]> Co-authored-by: Andrea Piai <[email protected]>
Warning
This PR depends on #5922
Short description
This PR introduces the wallet instance and attestation retrieval state to the eID issuance machine.
List of changes proposed in this pull request
@pagopa/io-react-native-integrity
dipendency@pagopa/io-react-native-wallet
to^0.13.0
itwEidIssuanceMachine
logicregisterWalletInstance
andgetWalletAttestation
actorsWalletInstanceRegistration
andWalletAttestationRetrieval
substates toWalletInitialization
stateItwIdentificationModeSelectionScreen
copyHow to test
In order to test this PR you need a physical device and the io-wallet local development server.
From the IT Wallet playground, go to the Discovery screen. You should be able to go through the wallet init phase and land in the identification screen
Co-authored by: @LazyAfternoons