* [INJIMOB-2471] make identifier of Vc as random UUID
Previously, we were relying on the id feild of the Vc to construct the unique identifier for VC component and file name for storing VC, this identifier in now replaced with random generated UUID. This was made since id property of VC is optional field as per w3c data-model 1.1.
We are using UUID version 4 to ensure randomness and collision-resistance.
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2471] maintain consistency in setting VCMetadata ID
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJICERT-2471] use VC metadata id as VC key
This VC key will be used for storing file name, component key & other identifier for VCs
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2471] remove setting identifier field in credential wrapper
The identitifier in credentialWrapper having the value "$issuer:$protocol:$UUID" was used to construct VC metadata id, issuer and protocol field which is already available in context param. This is now replaced with constructing VC metadata with the required fields available in machine context.
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2471] use context VCMetadata instead of calling function for accessing in issuersMachine
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2471] optimize import
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
---------
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2571]: refactor backed up data restoration method
Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>
* [INJIMOB-2571]: refactor the storage class to make it more readable and for seperation of concerns
Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>
* [INJIMOB-2571]: rename a few methods and throw the caught error along with logging it
Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>
* [INJIMOB-2571]: refactor verifyCredential method and its usages
Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>
* [INJIMOB-2571]: move verifyCredentialData method under OpenIdVCI
Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>
---------
Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>
* [INJIMOB-2415] show credential type in mini view
Previously, it was showing hardcoded fullName in mini view
Other changes include
- Handling of display property
-> unavailable in wellknown
-> empty array in wellknown
-> expected credential type (name) is not available in display property of wellknown
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2415] rename getIDType to getCredentialType
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2415]: update logic to get credential type
Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>
* [INJIMOB-2415]: update the translation for mso mdoc fallback for credential type
Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>
* [INJIMOB-2415] update getCredentialType method comments
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2369] remove commented code
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2415] get backgroundColor of VC from curr lang's display property
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2415] get background image of VC from curr lang's display property
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2415] get text color of VC from curr lang's display property
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2415] add prop types for VCVerification component
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2415] introduce fieldColor prop in VCItemField for VC mini & detail view
As of now, for each and every field that is getting rendered we are calling getTextColor with wellknown param, if we start bringing in logic of getDisplayObjectForCurrentLanguage and then get the text_color from it, we will end up in running a filter for each and every field. For reducing this complexity, VCItemField component is accepting fieldColor prop from the caller.
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2415] move fallback miniview kebab popup color to const
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2415] move fallback detailview border color to const
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2415] move fallback verification text color to const
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2415] remove unnecessary sending of props
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2415] refactor type error
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2415] refactor type error
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2415] refactor - remove unused prop
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2415] refactor getBackgroundColor to accept display element as per app languange
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2415] refactor getBackgroundImage to accept display element as per app languange
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2415] refactor getTextColor to accept display element as per app languange
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2415] fix credential type to be shown based on app lang
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2415] extract card's display related functions to class
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2415] fix build fail for accessing Theme in static block
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
---------
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>
Co-authored-by: Alka Prasad <prasadalka1998@gmail.com>
* [INJIMOB-2369] get authorization endpoint from auth server wellknown
Replace hardcoded authorization endpoint (authorization_servers[0] + '/authorize') to fetching from oauth-authorization-server well-known
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2369] handle error scenarios for authz url discovery
For getting the authorization_endpoint as per Wallet's support, as of now we are getting the first entry of authorization_server and fetching the authorization server metadata. In this metadata if grant type is not authorization_code, its considered as error scenario
In case of error while fetching authorization endpoint from Authorization server,
- Network error -> No internet error screen
- oauth-authorization-server well-known's supported grant types is not supported by Wallet -> Grant type not supported error
- Others -> Generic error screen
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2369] add locales support for grantTypeNotSupperted error
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
* [INJIMOB-2369]: remove unused url
Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>
* [INJIMOB-2369] modify cache key of issuer authorization server metadata
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
---------
Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>
Co-authored-by: Alka Prasad <prasadalka1998@gmail.com>
* [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.
* [INJIMOB-2170] show loading screen in vp sharing flow after scanning the qr code and till fetchig the matching VCs
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
* [INJIMOB-2170] add translations for loading screen messages in all languages
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
* [INJIMOB-2170] show share and share with selfie buttons in sharing screen based on whether the matching VCs and selected VCs has image or not
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
* [INJIMOB-2170] align sharing vp screen header title to center to show it properly in all languages
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
* [INJIMOB-2170] add vpVerifierName as dependency in useLayoutEffect to reload the screen if verifier name is received from scanned QR code
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>