* [INJIMOB-2135] get the authentication response as instance of Authorization request rather than as map and make necessary changes for the same in js layer
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
* [INJIMOB-2135] in vp sharing flow use json path library to extract the path value from the VC json data
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
* [INJIMOB-2135] add logic in openid4vp actions to filter the credentials based on the format and proof types and if input descriptor doesn't have format but presentation definition has use it for filtering
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
* [INJIMOB-2135] change the postion of checkbox in VC to the right side during the VP sharing flow
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
* [INJIMOB-2135] show verifier name in vp sharing screen header
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
* [INJIMOB-2135] add log event types for different flows in vp sharing and add translations for log messages in all languages
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
* [INJIMOB-2135] create an interface and use it as a blueprint for vc and vp share activity log classes and override necessary methods
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
* [INJIMOB-2135] show all the VCs available in the wallet if none of the input descriptors have format or constraints
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
* [INJIMOB-2135] notify verifier when user declined the consent for sharing VP by calling sendErrorToVerifier method
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
* [INJIMOB-2135] add logs for different flows of VP sharing
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
* [INJIMOB-2135] add translations for some of the vp sharing flows
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
* [INJIMOB-2135] in vp sharing fix the logic of filtering the VCs matching request and add actions to show the logs properly for normal and retry attempts
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
* [INJIMOB-2135] rename vp sharing activity logs header text into camel case
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
* [INJIMOB-2135] add translations for retry attempt failure and technical error scenarios in vp sharing flow
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
* [INJIMOB-2135] update no credential and credential mismatch error & log messages to show the list of claims requested by verifier
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
* [INJIMOB-2215]: expose api in openid4vp module to send error to verifier
Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>
* [INJIMOB-2215]: expose api in openid4vp module to send error to verifier
Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>
* [INJIMOB-2215]: expose api in openid4vp module to send error to verifier
Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>
* [INJIMOB-2215]: refactor native modules and styles for header in send vp screen
Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>
* [INJIMOB-2215]: refactor native modules and styles for header in send vp screen
Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>
* [INJIMOB-2135] show normal failure message in history screen if sharing is failed because of technical error and before retry attempt
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
* [INJIMOB-2135] exclude bcpkix-jdk15on module to avoid transitive dependency issues occuring while building the app
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
* Revert "[INJIMOB-2135] exclude bcpkix-jdk15on module to avoid transitive dependency issues occuring while building the app"
This reverts commit 8c7e4572c1.
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
* [INJIMOB-2135]: update openid4vp swift package
Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>
* [INJIMOB-2135] specify the type of t in getActionText method of vc and vp Activity log events file
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
---------
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>
Co-authored-by: adityankannan-tw <adityan410pm@gmail.com>
* [INJI-314] initial commit
Signed-off-by: Sri Kanth Kola <srikanthsri7447@gmail.com>
* [INJI-314] add WIP ut stuff
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>
* [INJIMOB-314] fix tsconfig for project type
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>
* [INJIMOB-314] kludge - skip checking types during unit tests
* mock image imports globally
* enable tests to run from any dir
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>
* [INJIMOB-314]: mocked modules
Signed-off-by: srikanth716 <srikanthsri7447@gmail.com>
* [INJIMOB-314]: mock react-native-google-signin
Signed-off-by: srikanth716 <srikanthsri7447@gmail.com>
* [INJIMOB-314]: use defined mock from google-signin lib
other details:
- mock base58.., rn-linear-gradient, expo-camera
- add @react-native/assets-registry to make jest-expo babel preset work
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>
* [INJIMOB-314] reorganise global const mocks into jest's setupFiles
Co-authored-by: srikanth716 <srikanthsri7447@gmail.com>
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>
* [INJIMOB-900] write tests for ActivityLogEvent
* init relevant mocks
* remove redundant global mocks from test files
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>
* [INJIMOB-900] fixup mocks of mmkv, zip-archive, rnfs
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>
* [INJIMOB-900]: write unit test for commonUtil
Signed-off-by: srikanth716 <srikanthsri7447@gmail.com>
* [INJIMOB-900]: write unit test for commonUtil
Signed-off-by: srikanth716 <srikanthsri7447@gmail.com>
* [INJIMOB-900]: sample unit test for settingsScreen
Signed-off-by: srikanth716 <srikanthsri7447@gmail.com>
* [INJIMOB-900] add SettingScreen test
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>
* [INJIMOB-900] update sample tests for commonUtil
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>
* [INJIMOB-900]: refactoring the settingsScreen test for Android and IOS
Signed-off-by: srikanth716 <srikanthsri7447@gmail.com>
* [INJIMOB-900] update test snapshots and add kludge in auth for testing
kludge: auth state machine now exports a selector with optional fields
as state machine isn't running in a test environment
Co-authored-by: srikanth716 <srikanthsri7447@gmail.com>
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>
* [INJIMOB-900]: snapshot test to settings screen
Signed-off-by: srikanth716 <srikanthsri7447@gmail.com>
* [INJIMOB-900] update mocks for testing and ACK reviews
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>
* [INJIMOB-900] downgrade expo to match compatibility matrix
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>
* [INJIMOB-900] upgrade expo to 49 to build the iOS app(kludge)
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>
* [INJIMOB-900] configure react-native-vector-icons as per README
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>
---------
Signed-off-by: Sri Kanth Kola <srikanthsri7447@gmail.com>
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>
Signed-off-by: srikanth716 <srikanthsri7447@gmail.com>
Co-authored-by: Sri Kanth Kola <srikanthsri7447@gmail.com>
* [INJIMOB-531] send base64 encode data to encrypt to avoid data truncation
When we pass data from a react native app with <part1>\x00<part2> value, any data post the \x00 gets truncated (i.e., part2 is trimmed off). This happens most likely with the react native bridge. To avoid this issue of truncation, we are required to pass the data as base64 encoded string and secure-keystore module will perform decoding before processing for encryption.
Co-authored-by: Harsh Vardhan <harsh59v@gmail.com>
Signed-off-by: KiruthikaJeyashankar <81218987+KiruthikaJeyashankar@users.noreply.github.com>
* [INJIMOB-531] upgrade secure-keystore package version
Signed-off-by: KiruthikaJeyashankar <81218987+KiruthikaJeyashankar@users.noreply.github.com>
---------
Signed-off-by: KiruthikaJeyashankar <81218987+KiruthikaJeyashankar@users.noreply.github.com>
Co-authored-by: Harsh Vardhan <harsh59v@gmail.com>
reason - @react-native-google-signin/google-signin v11.x requires target version 13.4 but our project has 13.0 which causes conflict
Signed-off-by: KiruthikaJeyashankar <81218987+KiruthikaJeyashankar@users.noreply.github.com>
* [INJI-699] remove .hmac & .hmace files created due to INJI-612
* also bump up secure-keystore to fix INJI-612
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>
* [INJI-559] remove PoC code added for INji-612
* redundant encryption/decryption over RN bridge was making it slower to
load VCs, post initial bug-fix this code is removed to improve
performance
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>
* [INJI-559] use try-catch for removing redundant files
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>
* [INJI-559] skip remove hmac file as its not created
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>
---------
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>