Skip to content

Commit

Permalink
[DSD-3884] Deleted sql files which are not required. Code Merge from …
Browse files Browse the repository at this point in the history
…develop to release-1201 (#1136)

* MOSIP-26891 added condition in caching (#1045)

Co-authored-by: Neha Farheen <[email protected]>

* Mosip 26891 caches in ida module should avoid caching null values (#1046)

* MOSIP-26891 added condition in caching

* modified the conditions

---------

Co-authored-by: Neha Farheen <[email protected]>

* Mosip 26891 caches in ida module should avoid caching null values (#1047)

* MOSIP-26891 added condition in caching

* modified the conditions

* condition changed

---------

Co-authored-by: Neha Farheen <[email protected]>

* Mosip 26891 caches in ida module should avoid caching null values (#1048)

* MOSIP-26891 added condition in caching

* modified the conditions

* condition changed

* condition changed

---------

Co-authored-by: Neha Farheen <[email protected]>

* Mosip 26891 caches in ida module should avoid caching null values (#1049)

* MOSIP-26891 added condition in caching

* modified the conditions

* condition changed

* condition changed

* condition changed

---------

Co-authored-by: Neha Farheen <[email protected]>

* [BUGFIX] [ES-176]

Handles the scenario when no claims are accepted from a set of optional claims
sub parameter is added to consented claim by default if it is emptywq

* iat validation corrected

* [MOSIP-28622] fixed firstname, lastname not populating in e-signet issue.

* [MOSIP-28484] Added error handling for deploy.sh script (#1061)

* [MOSIP-28484] Added error handling for deploy.sh script

* [MOSIP-28484] Updated error handling for deploy.sh script

* [MOSIP-28484] Removed exit command

---------

Co-authored-by: akilalakshmanan <[email protected]>

* Implemented the VCI plugin in IDA

* Format the code

* Changes done

* Changes done

* Changes done

* Decrypted the individualId

* [ES-186] Added new Vci Exchange API to add support for VCI.

* Added new repo for LD signature library. (#1075)

* updated push trigger to include settings.xml for sonar analysis and fixed start up error.

* removed show progress argument for wget command to display download progress.

* ES-107

* Fixed the cache read issue

* ES-187

* ES-187

* [ES-186] Fixed integration issues.

* ES-187

* [ES-186] changed the VC ID to UUID instead of PSUT and added locales.

* [MOSIP-29163] updated reusable workflows (#1088)

* merge from release-1.2.0.1 to develop (#1089)

* [MOSIP-21002] Updated kyc error response to have kycStatus and updated db scripts (#872)

* Update 1.2_ida-scripts_release.sql (#852)

* [MOSIP-21072] Fixed db scripts for upgrade (#865)

* [MOSIP-18655] reverted EnvUtil as RefreshScope

* [MOSIP-18655] Ignoring test cases temporarily

* [MOSIP-18655] Updated EnvUtil to implement env methods

* [MOSIP-18655] Ignoring test cases temporarily

* [MOSIP-18655] Ignoring test cases temporarily

* [MOSIP-18655] reverted EnvUtil as RefreshScope

* [MOSIP-18655] reverted EnvUtil as RefreshScope

* [MOSIP-18655] Updated EnvUtil to implement env methods

* [MOSIP-18655] reverted EnvUtil as RefreshScope

* [MOSIP-18655] Updated EnvUtil to implement env methods

* [MOSIP-18655] reverted EnvUtil as RefreshScope

* [MOSIP-18655] Updated EnvUtil to implement env methods

* [MOSIP-18655] reverted EnvUtil as RefreshScope

* [MOSIP-18655] Updated EnvUtil to implement env methods

* [MOSIP-21072] Fixed db scripts for upgrade

* [MOSIP-21002] Updated kyc error response to have kycStatus (#868)

* Revert "[MOSIP-21072] Fixed db scripts for upgrade (#865)" (#869)

This reverts commit bed76a2ddce57a407a174fd6d682b946cb2b220f.

* [MOSIP-21002] Updated kyc error response to have kycStatus and updated db release scripts (#871)

* Revert "[MOSIP-21072] Fixed db scripts for upgrade (#865)"

This reverts commit bed76a2ddce57a407a174fd6d682b946cb2b220f.

* [MOSIP-21072] reverted release script changes

* [MOSIP-21072] reverted release script changes

* Revert "[MOSIP-21072] reverted release script changes"

This reverts commit 4cbb9899f3acc69c3383b339176937ebb1877b0e.

* [MOSIP-21072] updated db release scripts (#873)

* Revert "[MOSIP-21072] Fixed db scripts for upgrade (#865)"

This reverts commit bed76a2ddce57a407a174fd6d682b946cb2b220f.

* [MOSIP-21072] reverted release script changes

* [MOSIP-21072] reverted release script changes

* Revert "[MOSIP-21072] reverted release script changes"

This reverts commit 4cbb9899f3acc69c3383b339176937ebb1877b0e.

* [MOSIP-21072] updated db release scripts

* [MOSIP-21072] Updated exception handling for ekyc (#874)

* Revert "[MOSIP-21072] Fixed db scripts for upgrade (#865)"

This reverts commit bed76a2ddce57a407a174fd6d682b946cb2b220f.

* [MOSIP-21072] reverted release script changes

* [MOSIP-21072] reverted release script changes

* Revert "[MOSIP-21072] reverted release script changes"

This reverts commit 4cbb9899f3acc69c3383b339176937ebb1877b0e.

* [MOSIP-21072] updated db release scripts

* [MOSIP-21072] Fixed test case

* [MOSIP-20984] added support for bio type to be case insensitive (#875)

* Revert "[MOSIP-21072] Fixed db scripts for upgrade (#865)"

This reverts commit bed76a2ddce57a407a174fd6d682b946cb2b220f.

* [MOSIP-21072] reverted release script changes

* [MOSIP-21072] reverted release script changes

* Revert "[MOSIP-21072] reverted release script changes"

This reverts commit 4cbb9899f3acc69c3383b339176937ebb1877b0e.

* [MOSIP-21072] updated db release scripts

* [MOSIP-21072] Fixed test case

* [MOSIP-20984] added support for bio type to be case insensitive

Co-authored-by: Loganathan Sekar <[email protected]>

* [MOSIP-20020] Update release_changes.yml

* [ MOSIP-20021 ] updated release_changes.yml to update README.md badges

* [MOSIP-20028] added action for tagging

* Added pre-expire-days & access-allowed values in DB release script. (#897)

* release file name changes.

* MOSIP-23611- Added flag to enable missing credential retrigger. Disabled by default

* Added logger

* release file name changes.

* release file name changes.

* Test case fix

* Release Bot Pre-release changes

* Update README.md

* updated snapshot url in push_trigger.yaml

* Added auth context class in internal and otp service, renamed the db script files.

* Removed not null constraint to policy id and added kycexchange exception handler.

* [DSD-1944] updated keymanager version

* updated sonar token

* Release Bot Pre-release changes

* Update README.md

* Code from develop branch. (#1000)

* resolved merge conflicts.

* [MOSIP-20020] Update release_changes.yml

* [ MOSIP-20021 ] updated release_changes.yml to update README.md badges

* [MOSIP-20028] added action for tagging

* Added pre-expire-days & access-allowed values in DB release script. (#897)

* release file name changes.

* Added auth context class in internal and otp service, renamed the db script files.

* removed not null constraint for policy_id in misp license data.

* [DSD-1935]added new token to check sonar_token functionality

* [DSD-1935]Updated sonar token

* MOSIP-25606 Fixed OIDC Client create/update and corrected address claim attributes.

* Added audit entry for kyc exchange and updated idhash in audit entry instead of individual id.

* Fixed bugs MOSIP-25718, MOSIP-25717 add opencv jar file for image conversion performance.

* Fixed test case.

* MOSIP-25757: Created esignet-integration-impl

* Removed mock implementations

* Changed class name

* Changed package name

* Changed esignet dependency scope

* Added ignore on failed test cases

* Added new Identity key binding API in ida service.

* MOSIP-25855: Added getAllKycSigningCertificates

* Added default values

* Removed Authentication Header

* Added test classes

* Modified test cases

* MOSIP-25324

* Added tables in ddl.sql

* [MOSIP-25637] Updated postgres-init_trigger.yml workflow (#965)

* [MOSIP-25637] Updated postgres-init_trigger.yml workflow

* Update postgres-init_trigger.yml

* [MOSIP-25637] Updated postgres-init_trigger.yml workflow (#966)

* Changes in biomatcher Util for unknown data (#971)

Co-authored-by: Neha Farheen <[email protected]>

* Mosip 26307 change in ida to correct bio sub type value sent in the match request (#972)

* Changes in biomatcher Util for unknown data

* Bug fixed

---------

Co-authored-by: Neha Farheen <[email protected]>
Co-authored-by: Loganathan Sekar <[email protected]>

* MOSIP-26295: Auditor implementation

* MOSIP-25867

* fixed application start error.

* MOSIP-26484

* Fixed test case failures

* Fixed couple of bugs. Jira # MOSIP-26472, MOSIP-26028.

* Renamed TokenInfo to KeyBindedToken

* MOSIP-26484

* MOSIP-26484

* Added workaround for key binded auth.

* Fixed test case failure error.

* MOSIP-26484 (#985)

Co-authored-by: ase-101 <>

* Fixed audit caching issue

* Update AuthTransactionHelper.java

* Fixed auditing error

* Added Key Binded Token authentication functionality.

* ignoring the failed test case temporarily.

* Corrected the header names

* Corrected the header names

* MOSIP-25324

* MOSIP-25324

* MOSIP-25324

* MOSIP-25324

* Changed kycStatus to bindingAuthStatus

* Added debug statement.

* Fixed issue in comparing the time difference.

* DB changes added in release db scripts

* Updating certificate to all VIDs for same TokenId and changed logic in fetching the binded certificates.

---------

Co-authored-by: Keshav Mishra <[email protected]>
Co-authored-by: syed-salman-technoforte <[email protected]>
Co-authored-by: kameshsr <[email protected]>
Co-authored-by: Mahesh-Binayak <[email protected]>
Co-authored-by: M1044292 <[email protected]>
Co-authored-by: ase-101 <>
Co-authored-by: Mohan E <[email protected]>
Co-authored-by: Neha2365 <[email protected]>
Co-authored-by: Neha Farheen <[email protected]>
Co-authored-by: Loganathan Sekar <[email protected]>
Co-authored-by: Anusha Sunkada <[email protected]>
Co-authored-by: Himaja Dhanyamraju <[email protected]>

* updated snapshot url (#1001)

* Corrected the upgrade scripts name (#1002)

Co-authored-by: ase-101 <>

* Release changes (#1004)

* Release Bot Pre-release changes

* Update README.md

---------

Co-authored-by: ckm007 <[email protected]>

* [DSD-2478] (#1005)

* MOSIP-26742 hash logic compatibility release 1201 (#1007)

MOSIP-26742 
* Added support for legacy method of hashing
* Handled salt missing when newhash calculation
* Review comment fixes
* Updated conditions and added logging
---------
Co-authored-by: Loganathan Sekar <[email protected]>

* Mosip 26742 hash logic compatibility 1 (#1008)

* Added support for legacy method of hashing

* Test fixes

* Handled salt missing when newhash calculation

* Review comment fixes

* Updated conditions and added logging

* Fixed value annotation

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* [MOSIP-23422] updated db_release scripts (#1022)

* [MOSIP-27964] updated upgrade sql's

* [MOSIP-27964] Update 1.1.5.5_to_1.2.0.1-B1_upgrade.sql (#1032)

Signed-off-by: Keshav Mishra <[email protected]>

* [MOSIP-27964]

* [MOSIP-27996] updated rollback sql

* [MOSIP-23218] Updated Pom.xml versions. (#1035)

* Updated versions to -SNAPSHOT

* Updated version to 1.2.0.1-SNAPSHOT

* Test fix

* [MOSIP-28175]Fixed publish to nexus failure

* Fix to salt caching issue

* Revert "Include new class from keymanager in imports."

This reverts commit 17a2375f82350d9d3a8f3dea26c0bfc3c5fa90a5.

* Revert "Added functionality in kyc-exchange API to return response in encrypted form (JWE).MOSIP-25369"

This reverts commit ec22724905a167052da7156aa15438efd8058792.

* Removed sysadmin

* Corrected user

* MOSIP-28227 Moved ddl script into upgrade scripts, corrections to upgrade scripts

* Added placeholder scripts for upgrade

* Jira No. MOSIP-28227, removed the truncate previledge for 3 tables and drop key_policy_def_h table. (#1053)

* [MOSIP-28622] fixed firstname, lastname not populating in e-signet issue.

* Reverted dependencies snapshot versions (#1059)

Co-authored-by: Loganathan Sekar <[email protected]>

* Fix compilation issue after snapshot version revert. (#1060)

* Reverted dependencies snapshot versions

* Fixed compilation issue

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Release changes (#1063)

* Release Bot Pre-release changes

* Update README.md

Signed-off-by: Keshav Mishra <[email protected]>

---------

Signed-off-by: Keshav Mishra <[email protected]>
Co-authored-by: ckm007 <[email protected]>

* Release 1.2.0.1 b4 (#1064)

* Reverted dependencies snapshot versions (#1059)

Co-authored-by: Loganathan Sekar <[email protected]>

* Fix compilation issue after snapshot version revert. (#1060)

* Reverted dependencies snapshot versions

* Fixed compilation issue

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Release changes (#1063)

* Release Bot Pre-release changes

* Update README.md

Signed-off-by: Keshav Mishra <[email protected]>

---------

Signed-off-by: Keshav Mishra <[email protected]>
Co-authored-by: ckm007 <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update push_trigger.yml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

---------

Signed-off-by: Keshav Mishra <[email protected]>
Co-authored-by: Loganathan Sekar <[email protected]>
Co-authored-by: Loganathan Sekar <[email protected]>
Co-authored-by: ckm007 <[email protected]>

* [MOSIP-29044] (#1067)

* Rename 1.2.0.1-B3_to_1.2.0.1_rollback.sql to 1.2.0.1-B3_to_1.2.0.1-B4_rollback.sql

Signed-off-by: Keshav Mishra <[email protected]>

* Rename 1.2.0.1-B3_to_1.2.0.1_upgrade.sql to 1.2.0.1-B3_to_1.2.0.1-B4_upgrade.sql

Signed-off-by: Keshav Mishra <[email protected]>

* Create 1.2.0.1-B4_to_1.2.0.1_rollback.sql

Signed-off-by: Keshav Mishra <[email protected]>

* Create Create 1.2.0.1-B4_to_1.2.0.1_upgrade.sql

Signed-off-by: Keshav Mishra <[email protected]>

* Rename Create 1.2.0.1-B4_to_1.2.0.1_upgrade.sql to 1.2.0.1-B4_to_1.2.0.1_upgrade.sql

Signed-off-by: Keshav Mishra <[email protected]>

---------

Signed-off-by: Keshav Mishra <[email protected]>

* [MOSIP-28484] Added error handling for deploy.sh script (#1065)

Co-authored-by: akilalakshmanan <[email protected]>

* Update push_trigger.yml

Signed-off-by: Keshav Mishra <[email protected]>

* WIP-Changes to allow available otp channel

* PSA-171 fix for allowing one of the available channels when both channels specified.

* Updated the pom versions

* Fix to have case insensitive check for channel attribute

---------

Signed-off-by: Keshav Mishra <[email protected]>
Co-authored-by: Manoj SP <[email protected]>
Co-authored-by: Loganathan Sekar <[email protected]>
Co-authored-by: Keshav Mishra <[email protected]>
Co-authored-by: syed-salman-technoforte <[email protected]>
Co-authored-by: syed-salman-technoforte <[email protected]>
Co-authored-by: kameshsr <[email protected]>
Co-authored-by: Loganathan Sekar <[email protected]>
Co-authored-by: pramod444 <[email protected]>
Co-authored-by: syed salman <[email protected]>
Co-authored-by: ckm007 <[email protected]>
Co-authored-by: Mahesh-Binayak <[email protected]>
Co-authored-by: M1044292 <[email protected]>
Co-authored-by: Mohan E <[email protected]>
Co-authored-by: Neha2365 <[email protected]>
Co-authored-by: Neha Farheen <[email protected]>
Co-authored-by: Anusha Sunkada <[email protected]>
Co-authored-by: Himaja Dhanyamraju <[email protected]>
Co-authored-by: Loganathan Sekar <[email protected]>
Co-authored-by: Vishwa <[email protected]>
Co-authored-by: Rakshitha650 <[email protected]>
Co-authored-by: Akila Lakshmanan <[email protected]>
Co-authored-by: akilalakshmanan <[email protected]>

* ES-187 (#1092)

Co-authored-by: ase-101 <>

* [ES-280], [ES-281] (#1094)

* Corrected dependency versions.

* Fixed NotReadablePropertyException error and added VID or UIN in VC.

* Fixed test cases error. (#1095)

* Fixed Test cases error. (#1096)

* Fixed test case error. (#1097)

* Fixed Test cases error. (#1098)

* Fixed test case error.

* Fixed test cases error.

* [ES-261] test cases for idaVCIssuancePluginImpl (#1093)

* added test cases for idaVCIssuancePluginImpl

* test cases added for idaVCIssuancePluginImpl

* added test cases for idaVCIssuancePluginImpl

* added langCode converter in idaVCIssuancePluginImpl

* [ES-261] changes in testCases for IdaVCIssuancePluginImpl (#1100)

* added test cases for idaVCIssuancePluginImpl

* test cases added for idaVCIssuancePluginImpl

* added test cases for idaVCIssuancePluginImpl

* added langCode converter in idaVCIssuancePluginImpl

* fix the build failed

* [MOSIP-29163] updated reusable workflows (#1103)

* [MOSIP-29163] updated secret in reusable workflows

* Revert "[MOSIP-29163] updated secret in reusable workflows"

This reverts commit 6d55aafca23e13b8dd929f8515735dc8437cc9d1.

* [MOSIP-29163] updated secret in reusable workflows

* [MOSIP-29163] removed tag.origin

* [ES-313] Fixed blank attribute issue & language not available issue. (#1105)

* ES-261 (#1108)

Co-authored-by: ase-101 <>

* [MOSIP-29888]Update pom.xml (#1109)

Signed-off-by: Mahesh-Binayak <[email protected]>

* [MOSIP-29801] Fixed less number of path parameters, api key expire error message. (#1111)

Signed-off-by: Mahammed Taheer <[email protected]>

* Merge code from release to develop. (#1121)

* [MOSIP-21002] Updated kyc error response to have kycStatus and updated db scripts (#872)

* Update 1.2_ida-scripts_release.sql (#852)

* [MOSIP-21072] Fixed db scripts for upgrade (#865)

* [MOSIP-18655] reverted EnvUtil as RefreshScope

* [MOSIP-18655] Ignoring test cases temporarily

* [MOSIP-18655] Updated EnvUtil to implement env methods

* [MOSIP-18655] Ignoring test cases temporarily

* [MOSIP-18655] Ignoring test cases temporarily

* [MOSIP-18655] reverted EnvUtil as RefreshScope

* [MOSIP-18655] reverted EnvUtil as RefreshScope

* [MOSIP-18655] Updated EnvUtil to implement env methods

* [MOSIP-18655] reverted EnvUtil as RefreshScope

* [MOSIP-18655] Updated EnvUtil to implement env methods

* [MOSIP-18655] reverted EnvUtil as RefreshScope

* [MOSIP-18655] Updated EnvUtil to implement env methods

* [MOSIP-18655] reverted EnvUtil as RefreshScope

* [MOSIP-18655] Updated EnvUtil to implement env methods

* [MOSIP-21072] Fixed db scripts for upgrade

* [MOSIP-21002] Updated kyc error response to have kycStatus (#868)

* Revert "[MOSIP-21072] Fixed db scripts for upgrade (#865)" (#869)

This reverts commit bed76a2ddce57a407a174fd6d682b946cb2b220f.

* [MOSIP-21002] Updated kyc error response to have kycStatus and updated db release scripts (#871)

* Revert "[MOSIP-21072] Fixed db scripts for upgrade (#865)"

This reverts commit bed76a2ddce57a407a174fd6d682b946cb2b220f.

* [MOSIP-21072] reverted release script changes

* [MOSIP-21072] reverted release script changes

* Revert "[MOSIP-21072] reverted release script changes"

This reverts commit 4cbb9899f3acc69c3383b339176937ebb1877b0e.

* [MOSIP-21072] updated db release scripts (#873)

* Revert "[MOSIP-21072] Fixed db scripts for upgrade (#865)"

This reverts commit bed76a2ddce57a407a174fd6d682b946cb2b220f.

* [MOSIP-21072] reverted release script changes

* [MOSIP-21072] reverted release script changes

* Revert "[MOSIP-21072] reverted release script changes"

This reverts commit 4cbb9899f3acc69c3383b339176937ebb1877b0e.

* [MOSIP-21072] updated db release scripts

* [MOSIP-21072] Updated exception handling for ekyc (#874)

* Revert "[MOSIP-21072] Fixed db scripts for upgrade (#865)"

This reverts commit bed76a2ddce57a407a174fd6d682b946cb2b220f.

* [MOSIP-21072] reverted release script changes

* [MOSIP-21072] reverted release script changes

* Revert "[MOSIP-21072] reverted release script changes"

This reverts commit 4cbb9899f3acc69c3383b339176937ebb1877b0e.

* [MOSIP-21072] updated db release scripts

* [MOSIP-21072] Fixed test case

* [MOSIP-20984] added support for bio type to be case insensitive (#875)

* Revert "[MOSIP-21072] Fixed db scripts for upgrade (#865)"

This reverts commit bed76a2ddce57a407a174fd6d682b946cb2b220f.

* [MOSIP-21072] reverted release script changes

* [MOSIP-21072] reverted release script changes

* Revert "[MOSIP-21072] reverted release script changes"

This reverts commit 4cbb9899f3acc69c3383b339176937ebb1877b0e.

* [MOSIP-21072] updated db release scripts

* [MOSIP-21072] Fixed test case

* [MOSIP-20984] added support for bio type to be case insensitive

Co-authored-by: Loganathan Sekar <[email protected]>

* [MOSIP-20020] Update release_changes.yml

* [ MOSIP-20021 ] updated release_changes.yml to update README.md badges

* [MOSIP-20028] added action for tagging

* Added pre-expire-days & access-allowed values in DB release script. (#897)

* release file name changes.

* MOSIP-23611- Added flag to enable missing credential retrigger. Disabled by default

* Added logger

* release file name changes.

* release file name changes.

* Test case fix

* Release Bot Pre-release changes

* Update README.md

* updated snapshot url in push_trigger.yaml

* Added auth context class in internal and otp service, renamed the db script files.

* Removed not null constraint to policy id and added kycexchange exception handler.

* [DSD-1944] updated keymanager version

* updated sonar token

* Release Bot Pre-release changes

* Update README.md

* Code from develop branch. (#1000)

* resolved merge conflicts.

* [MOSIP-20020] Update release_changes.yml

* [ MOSIP-20021 ] updated release_changes.yml to update README.md badges

* [MOSIP-20028] added action for tagging

* Added pre-expire-days & access-allowed values in DB release script. (#897)

* release file name changes.

* Added auth context class in internal and otp service, renamed the db script files.

* removed not null constraint for policy_id in misp license data.

* [DSD-1935]added new token to check sonar_token functionality

* [DSD-1935]Updated sonar token

* MOSIP-25606 Fixed OIDC Client create/update and corrected address claim attributes.

* Added audit entry for kyc exchange and updated idhash in audit entry instead of individual id.

* Fixed bugs MOSIP-25718, MOSIP-25717 add opencv jar file for image conversion performance.

* Fixed test case.

* MOSIP-25757: Created esignet-integration-impl

* Removed mock implementations

* Changed class name

* Changed package name

* Changed esignet dependency scope

* Added ignore on failed test cases

* Added new Identity key binding API in ida service.

* MOSIP-25855: Added getAllKycSigningCertificates

* Added default values

* Removed Authentication Header

* Added test classes

* Modified test cases

* MOSIP-25324

* Added tables in ddl.sql

* [MOSIP-25637] Updated postgres-init_trigger.yml workflow (#965)

* [MOSIP-25637] Updated postgres-init_trigger.yml workflow

* Update postgres-init_trigger.yml

* [MOSIP-25637] Updated postgres-init_trigger.yml workflow (#966)

* Changes in biomatcher Util for unknown data (#971)

Co-authored-by: Neha Farheen <[email protected]>

* Mosip 26307 change in ida to correct bio sub type value sent in the match request (#972)

* Changes in biomatcher Util for unknown data

* Bug fixed

---------

Co-authored-by: Neha Farheen <[email protected]>
Co-authored-by: Loganathan Sekar <[email protected]>

* MOSIP-26295: Auditor implementation

* MOSIP-25867

* fixed application start error.

* MOSIP-26484

* Fixed test case failures

* Fixed couple of bugs. Jira # MOSIP-26472, MOSIP-26028.

* Renamed TokenInfo to KeyBindedToken

* MOSIP-26484

* MOSIP-26484

* Added workaround for key binded auth.

* Fixed test case failure error.

* MOSIP-26484 (#985)

Co-authored-by: ase-101 <>

* Fixed audit caching issue

* Update AuthTransactionHelper.java

* Fixed auditing error

* Added Key Binded Token authentication functionality.

* ignoring the failed test case temporarily.

* Corrected the header names

* Corrected the header names

* MOSIP-25324

* MOSIP-25324

* MOSIP-25324

* MOSIP-25324

* Changed kycStatus to bindingAuthStatus

* Added debug statement.

* Fixed issue in comparing the time difference.

* DB changes added in release db scripts

* Updating certificate to all VIDs for same TokenId and changed logic in fetching the binded certificates.

---------

Co-authored-by: Keshav Mishra <[email protected]>
Co-authored-by: syed-salman-technoforte <[email protected]>
Co-authored-by: kameshsr <[email protected]>
Co-authored-by: Mahesh-Binayak <[email protected]>
Co-authored-by: M1044292 <[email protected]>
Co-authored-by: ase-101 <>
Co-authored-by: Mohan E <[email protected]>
Co-authored-by: Neha2365 <[email protected]>
Co-authored-by: Neha Farheen <[email protected]>
Co-authored-by: Loganathan Sekar <[email protected]>
Co-authored-by: Anusha Sunkada <[email protected]>
Co-authored-by: Himaja Dhanyamraju <[email protected]>

* updated snapshot url (#1001)

* Corrected the upgrade scripts name (#1002)

Co-authored-by: ase-101 <>

* Release changes (#1004)

* Release Bot Pre-release changes

* Update README.md

---------

Co-authored-by: ckm007 <[email protected]>

* [DSD-2478] (#1005)

* MOSIP-26742 hash logic compatibility release 1201 (#1007)

MOSIP-26742 
* Added support for legacy method of hashing
* Handled salt missing when newhash calculation
* Review comment fixes
* Updated conditions and added logging
---------
Co-authored-by: Loganathan Sekar <[email protected]>

* Mosip 26742 hash logic compatibility 1 (#1008)

* Added support for legacy method of hashing

* Test fixes

* Handled salt missing when newhash calculation

* Review comment fixes

* Updated conditions and added logging

* Fixed value annotation

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* [MOSIP-23422] updated db_release scripts (#1022)

* [MOSIP-27964] updated upgrade sql's

* [MOSIP-27964] Update 1.1.5.5_to_1.2.0.1-B1_upgrade.sql (#1032)

Signed-off-by: Keshav Mishra <[email protected]>

* [MOSIP-27964]

* [MOSIP-27996] updated rollback sql

* [MOSIP-23218] Updated Pom.xml versions. (#1035)

* Updated versions to -SNAPSHOT

* Updated version to 1.2.0.1-SNAPSHOT

* Test fix

* [MOSIP-28175]Fixed publish to nexus failure

* Fix to salt caching issue

* Revert "Include new class from keymanager in imports."

This reverts commit 17a2375f82350d9d3a8f3dea26c0bfc3c5fa90a5.

* Revert "Added functionality in kyc-exchange API to return response in encrypted form (JWE).MOSIP-25369"

This reverts commit ec22724905a167052da7156aa15438efd8058792.

* Removed sysadmin

* Corrected user

* MOSIP-28227 Moved ddl script into upgrade scripts, corrections to upgrade scripts

* Added placeholder scripts for upgrade

* Jira No. MOSIP-28227, removed the truncate previledge for 3 tables and drop key_policy_def_h table. (#1053)

* [MOSIP-28622] fixed firstname, lastname not populating in e-signet issue.

* Reverted dependencies snapshot versions (#1059)

Co-authored-by: Loganathan Sekar <[email protected]>

* Fix compilation issue after snapshot version revert. (#1060)

* Reverted dependencies snapshot versions

* Fixed compilation issue

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Release changes (#1063)

* Release Bot Pre-release changes

* Update README.md

Signed-off-by: Keshav Mishra <[email protected]>

---------

Signed-off-by: Keshav Mishra <[email protected]>
Co-authored-by: ckm007 <[email protected]>

* Release 1.2.0.1 b4 (#1064)

* Reverted dependencies snapshot versions (#1059)

Co-authored-by: Loganathan Sekar <[email protected]>

* Fix compilation issue after snapshot version revert. (#1060)

* Reverted dependencies snapshot versions

* Fixed compilation issue

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Release changes (#1063)

* Release Bot Pre-release changes

* Update README.md

Signed-off-by: Keshav Mishra <[email protected]>

---------

Signed-off-by: Keshav Mishra <[email protected]>
Co-authored-by: ckm007 <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update push_trigger.yml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

---------

Signed-off-by: Keshav Mishra <[email protected]>
Co-authored-by: Loganathan Sekar <[email protected]>
Co-authored-by: Loganathan Sekar <[email protected]>
Co-authored-by: ckm007 <[email protected]>

* [MOSIP-29044] (#1067)

* Rename 1.2.0.1-B3_to_1.2.0.1_rollback.sql to 1.2.0.1-B3_to_1.2.0.1-B4_rollback.sql

Signed-off-by: Keshav Mishra <[email protected]>

* Rename 1.2.0.1-B3_to_1.2.0.1_upgrade.sql to 1.2.0.1-B3_to_1.2.0.1-B4_upgrade.sql

Signed-off-by: Keshav Mishra <[email protected]>

* Create 1.2.0.1-B4_to_1.2.0.1_rollback.sql

Signed-off-by: Keshav Mishra <[email protected]>

* Create Create 1.2.0.1-B4_to_1.2.0.1_upgrade.sql

Signed-off-by: Keshav Mishra <[email protected]>

* Rename Create 1.2.0.1-B4_to_1.2.0.1_upgrade.sql to 1.2.0.1-B4_to_1.2.0.1_upgrade.sql

Signed-off-by: Keshav Mishra <[email protected]>

---------

Signed-off-by: Keshav Mishra <[email protected]>

* [MOSIP-28484] Added error handling for deploy.sh script (#1065)

Co-authored-by: akilalakshmanan <[email protected]>

* Update push_trigger.yml

Signed-off-by: Keshav Mishra <[email protected]>

* WIP-Changes to allow available otp channel

* PSA-171 fix for allowing one of the available channels when both channels specified.

* Updated the pom versions

* Fix to have case insensitive check for channel attribute

* Merge develop to Release 1.2.0.1 (#1090)

* MOSIP-26891 added condition in caching (#1045)

Co-authored-by: Neha Farheen <[email protected]>

* Mosip 26891 caches in ida module should avoid caching null values (#1046)

* MOSIP-26891 added condition in caching

* modified the conditions

---------

Co-authored-by: Neha Farheen <[email protected]>

* Mosip 26891 caches in ida module should avoid caching null values (#1047)

* MOSIP-26891 added condition in caching

* modified the conditions

* condition changed

---------

Co-authored-by: Neha Farheen <[email protected]>

* Mosip 26891 caches in ida module should avoid caching null values (#1048)

* MOSIP-26891 added condition in caching

* modified the conditions

* condition changed

* condition changed

---------

Co-authored-by: Neha Farheen <[email protected]>

* Mosip 26891 caches in ida module should avoid caching null values (#1049)

* MOSIP-26891 added condition in caching

* modified the conditions

* condition changed

* condition changed

* condition changed

---------

Co-authored-by: Neha Farheen <[email protected]>

* [BUGFIX] [ES-176]

Handles the scenario when no claims are accepted from a set of optional claims
sub parameter is added to consented claim by default if it is emptywq

* iat validation corrected

* [MOSIP-28622] fixed firstname, lastname not populating in e-signet issue.

* [MOSIP-28484] Added error handling for deploy.sh script (#1061)

* [MOSIP-28484] Added error handling for deploy.sh script

* [MOSIP-28484] Updated error handling for deploy.sh script

* [MOSIP-28484] Removed exit command

---------

Co-authored-by: akilalakshmanan <[email protected]>

* Implemented the VCI plugin in IDA

* Format the code

* Changes done

* Changes done

* Changes done

* Decrypted the individualId

* [ES-186] Added new Vci Exchange API to add support for VCI.

* Added new repo for LD signature library. (#1075)

* updated push trigger to include settings.xml for sonar analysis and fixed start up error.

* removed show progress argument for wget command to display download progress.

* ES-107

* Fixed the cache read issue

* ES-187

* ES-187

* [ES-186] Fixed integration issues.

* ES-187

* [ES-186] changed the VC ID to UUID instead of PSUT and added locales.

* [MOSIP-29163] updated reusable workflows (#1088)

* merge from release-1.2.0.1 to develop (#1089)

* [MOSIP-21002] Updated kyc error response to have kycStatus and updated db scripts (#872)

* Update 1.2_ida-scripts_release.sql (#852)

* [MOSIP-21072] Fixed db scripts for upgrade (#865)

* [MOSIP-18655] reverted EnvUtil as RefreshScope

* [MOSIP-18655] Ignoring test cases temporarily

* [MOSIP-18655] Updated EnvUtil to implement env methods

* [MOSIP-18655] Ignoring test cases temporarily

* [MOSIP-18655] Ignoring test cases temporarily

* [MOSIP-18655] reverted EnvUtil as RefreshScope

* [MOSIP-18655] reverted EnvUtil as RefreshScope

* [MOSIP-18655] Updated EnvUtil to implement env methods

* [MOSIP-18655] reverted EnvUtil as RefreshScope

* [MOSIP-18655] Updated EnvUtil to implement env methods

* [MOSIP-18655] reverted EnvUtil as RefreshScope

* [MOSIP-18655] Updated EnvUtil to implement env methods

* [MOSIP-18655] reverted EnvUtil as RefreshScope

* [MOSIP-18655] Updated EnvUtil to implement env methods

* [MOSIP-21072] Fixed db scripts for upgrade

* [MOSIP-21002] Updated kyc error response to have kycStatus (#868)

* Revert "[MOSIP-21072] Fixed db scripts for upgrade (#865)" (#869)

This reverts commit bed76a2ddce57a407a174fd6d682b946cb2b220f.

* [MOSIP-21002] Updated kyc error response to have kycStatus and updated db release scripts (#871)

* Revert "[MOSIP-21072] Fixed db scripts for upgrade (#865)"

This reverts commit bed76a2ddce57a407a174fd6d682b946cb2b220f.

* [MOSIP-21072] reverted release script changes

* [MOSIP-21072] reverted release script changes

* Revert "[MOSIP-21072] reverted release script changes"

This reverts commit 4cbb9899f3acc69c3383b339176937ebb1877b0e.

* [MOSIP-21072] updated db release scripts (#873)

* Revert "[MOSIP-21072] Fixed db scripts for upgrade (#865)"

This reverts commit bed76a2ddce57a407a174fd6d682b946cb2b220f.

* [MOSIP-21072] reverted release script changes

* [MOSIP-21072] reverted release script changes

* Revert "[MOSIP-21072] reverted release script changes"

This reverts commit 4cbb9899f3acc69c3383b339176937ebb1877b0e.

* [MOSIP-21072] updated db release scripts

* [MOSIP-21072] Updated exception handling for ekyc (#874)

* Revert "[MOSIP-21072] Fixed db scripts for upgrade (#865)"

This reverts commit bed76a2ddce57a407a174fd6d682b946cb2b220f.

* [MOSIP-21072] reverted release script changes

* [MOSIP-21072] reverted release script changes

* Revert "[MOSIP-21072] reverted release script changes"

This reverts commit 4cbb9899f3acc69c3383b339176937ebb1877b0e.

* [MOSIP-21072] updated db release scripts

* [MOSIP-21072] Fixed test case

* [MOSIP-20984] added support for bio type to be case insensitive (#875)

* Revert "[MOSIP-21072] Fixed db scripts for upgrade (#865)"

This reverts commit bed76a2ddce57a407a174fd6d682b946cb2b220f.

* [MOSIP-21072] reverted release script changes

* [MOSIP-21072] reverted release script changes

* Revert "[MOSIP-21072] reverted release script changes"

This reverts commit 4cbb9899f3acc69c3383b339176937ebb1877b0e.

* [MOSIP-21072] updated db release scripts

* [MOSIP-21072] Fixed test case

* [MOSIP-20984] added support for bio type to be case insensitive

Co-authored-by: Loganathan Sekar <[email protected]>

* [MOSIP-20020] Update release_changes.yml

* [ MOSIP-20021 ] updated release_changes.yml to update README.md badges

* [MOSIP-20028] added action for tagging

* Added pre-expire-days & access-allowed values in DB release script. (#897)

* release file name changes.

* MOSIP-23611- Added flag to enable missing credential retrigger. Disabled by default

* Added logger

* release file name changes.

* release file name changes.

* Test case fix

* Release Bot Pre-release changes

* Update README.md

* updated snapshot url in push_trigger.yaml

* Added auth context class in internal and otp service, renamed the db script files.

* Removed not null constraint to policy id and added kycexchange exception handler.

* [DSD-1944] updated keymanager version

* updated sonar token

* Release Bot Pre-release changes

* Update README.md

* Code from develop branch. (#1000)

* resolved merge conflicts.

* [MOSIP-20020] Update release_changes.yml

* [ MOSIP-20021 ] updated release_changes.yml to update README.md badges

* [MOSIP-20028] added action for tagging

* Added pre-expire-days & access-allowed values in DB release script. (#897)

* release file name changes.

* Added auth context class in internal and otp service, renamed the db script files.

* removed not null constraint for policy_id in misp license data.

* [DSD-1935]added new token to check sonar_token functionality

* [DSD-1935]Updated sonar token

* MOSIP-25606 Fixed OIDC Client create/update and corrected address claim attributes.

* Added audit entry for kyc exchange and updated idhash in audit entry instead of individual id.

* Fixed bugs MOSIP-25718, MOSIP-25717 add opencv jar file for image conversion performance.

* Fixed test case.

* MOSIP-25757: Created esignet-integration-impl

* Removed mock implementations

* Changed class name

* Changed package name

* Changed esignet dependency scope

* Added ignore on failed test cases

* Added new Identity key binding API in ida service.

* MOSIP-25855: Added getAllKycSigningCertificates

* Added default values

* Removed Authentication Header

* Added test classes

* Modified test cases

* MOSIP-25324

* Added tables in ddl.sql

* [MOSIP-25637] Updated postgres-init_trigger.yml workflow (#965)

* [MOSIP-25637] Updated postgres-init_trigger.yml workflow

* Update postgres-init_trigger.yml

* [MOSIP-25637] Updated postgres-init_trigger.yml workflow (#966)

* Changes in biomatcher Util for unknown data (#971)

Co-authored-by: Neha Farheen <[email protected]>

* Mosip 26307 change in ida to correct bio sub type value sent in the match request (#972)

* Changes in biomatcher Util for unknown data

* Bug fixed

---------

Co-authored-by: Neha Farheen <[email protected]>
Co-authored-by: Loganathan Sekar <[email protected]>

* MOSIP-26295: Auditor implementation

* MOSIP-25867

* fixed application start error.

* MOSIP-26484

* Fixed test case failures

* Fixed couple of bugs. Jira # MOSIP-26472, MOSIP-26028.

* Renamed TokenInfo to KeyBindedToken

* MOSIP-26484

* MOSIP-26484

* Added workaround for key binded auth.

* Fixed test case failure error.

* MOSIP-26484 (#985)

Co-authored-by: ase-101 <>

* Fixed audit caching issue

* Update AuthTransactionHelper.java

* Fixed auditing error

* Added Key Binded Token authentication functionality.

* ignoring the failed test case temporarily.

* Corrected the header names

* Corrected the header names

* MOSIP-25324

* MOSIP-25324

* MOSIP-25324

* MOSIP-25324

* Changed kycStatus to bindingAuthStatus

* Added debug statement.

* Fixed issue in comparing the time difference.

* DB changes added in release db scripts

* Updating certificate to all VIDs for same TokenId and changed logic in fetching the binded certificates.

---------

Co-authored-by: Keshav Mishra <[email protected]>
Co-authored-by: syed-salman-technoforte <[email protected]>
Co-authored-by: kameshsr <[email protected]>
Co-authored-by: Mahesh-Binayak <[email protected]>
Co-authored-by: M1044292 <[email protected]>
Co-authored-by: ase-101 <>
Co-authored-by: Mohan E <[email protected]>
Co-authored-by: Neha2365 <[email protected]>
Co-authored-by: Neha Farheen <[email protected]>
Co-authored-by: Loganathan Sekar <[email protected]>
Co-authored-by: Anusha Sunkada <[email protected]>
Co-authored-by: Himaja Dhanyamraju <[email protected]>

* updated snapshot url (#1001)

* Corrected the upgrade scripts name (#1002)

Co-authored-by: ase-101 <>

* Release changes (#1004)

* Release Bot Pre-release changes

* Update README.md

---------

Co-authored-by: ckm007 <[email protected]>

* [DSD-2478] (#1005)

* MOSIP-26742 hash logic compatibility release 1201 (#1007)

MOSIP-26742 
* Added support for legacy method of hashing
* Handled salt missing when newhash calculation
* Review comment fixes
* Updated conditions and added logging
---------
Co-authored-by: Loganathan Sekar <[email protected]>

* Mosip 26742 hash logic compatibility 1 (#1008)

* Added support for legacy method of hashing

* Test fixes

* Handled salt missing when newhash calculation

* Review comment fixes

* Updated conditions and added logging

* Fixed value annotation

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* [MOSIP-23422] updated db_release scripts (#1022)

* [MOSIP-27964] updated upgrade sql's

* [MOSIP-27964] Update 1.1.5.5_to_1.2.0.1-B1_upgrade.sql (#1032)

Signed-off-by: Keshav Mishra <[email protected]>

* [MOSIP-27964]

* [MOSIP-27996] updated rollback sql

* [MOSIP-23218] Updated Pom.xml versions. (#1035)

* Updated versions to -SNAPSHOT

* Updated version to 1.2.0.1-SNAPSHOT

* Test fix

* [MOSIP-28175]Fixed publish to nexus failure

* Fix to salt caching issue

* Revert "Include new class from keymanager in imports."

This reverts commit 17a2375f82350d9d3a8f3dea26c0bfc3c5fa90a5.

* Revert "Added functionality in kyc-exchange API to return response in encrypted form (JWE).MOSIP-25369"

This reverts commit ec22724905a167052da7156aa15438efd8058792.

* Removed sysadmin

* Corrected user

* MOSIP-28227 Moved ddl script into upgrade scripts, corrections to upgrade scripts

* Added placeholder scripts for upgrade

* Jira No. MOSIP-28227, removed the truncate previledge for 3 tables and drop key_policy_def_h table. (#1053)

* [MOSIP-28622] fixed firstname, lastname not populating in e-signet issue.

* Reverted dependencies snapshot versions (#1059)

Co-authored-by: Loganathan Sekar <[email protected]>

* Fix compilation issue after snapshot version revert. (#1060)

* Reverted dependencies snapshot versions

* Fixed compilation issue

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Release changes (#1063)

* Release Bot Pre-release changes

* Update README.md

Signed-off-by: Keshav Mishra <[email protected]>

---------

Signed-off-by: Keshav Mishra <[email protected]>
Co-authored-by: ckm007 <[email protected]>

* Release 1.2.0.1 b4 (#1064)

* Reverted dependencies snapshot versions (#1059)

Co-authored-by: Loganathan Sekar <[email protected]>

* Fix compilation issue after snapshot version revert. (#1060)

* Reverted dependencies snapshot versions

* Fixed compilation issue

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Release changes (#1063)

* Release Bot Pre-release changes

* Update README.md

Signed-off-by: Keshav Mishra <[email protected]>

---------

Signed-off-by: Keshav Mishra <[email protected]>
Co-authored-by: ckm007 <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update push_trigger.yml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

* Update pom.xml

Signed-off-by: Keshav Mishra <[email protected]>

---------

Signed-off-by: Keshav Mishra <[email protected]>
Co-authored-by: Loganathan Sekar <[email protected]>
Co-authored-by: Loganathan Sekar <[email protected]>
Co-authored-by: ckm007 <[email protected]>

* [MOSIP-29044] (#1067)

* Rename 1.2.0.1-B3_to_1.2.0.1_rollback.sql to 1.2.0.1-B3_to_1.2.0.1-B4_rollback.sql

Signed-off-by: Keshav Mishra <[email protected]>

* Rename 1.2.0.1-B3_to_1.2.0.1_upgrade.sql to 1.2.0.1-B3_to_1.2.0.1-B4_upgrade.sql

Signed-off-by: Keshav Mishra <[email protected]>

* Create 1.2.0.1-B4_to_1.2.0.1_rollback.sql

Signed-off-by: Keshav Mishra <[email protected]>

* Create Create 1.2.0.1-B4_to_1.2.0.1_upgrade.sql

Signed-off-by: Keshav Mishra <[email protected]>

* Rename Create 1.2.0.1-B4_to_1.2.0.1_upgrade.sql to 1.2.0.1-B4_to_1.2.0.1_upgrade.sql

Signed-off-by: Keshav Mishra <[email protected]>

---------

Signed-off-by: Keshav Mishra <[email protected]>

* [MOSIP-28484] Added error handling for deploy.sh script (#1065)

Co-authored-by: akilalakshmanan <[email protected]>

* Update push_trigger.yml

Signed-off-by: Keshav Mishra <[email protected]>

* WIP-Changes to allow available otp channel

* PSA-171 fix for allowing one of the available channels when both channels specified.

* Updated the pom versions

* Fix to have case insensitive check for channel attribute

---------

Signed-off-by: Keshav Mishra <[email protected]>
Co-authored-by: Manoj SP <[email protected]>
Co-authored-by: Loganathan Sekar <[email protected]>
Co-authored-by: Keshav Mishra <[email protected]>
Co-authored-by: syed-salman-technoforte <[email protected]>
Co-authored-by: syed-salman-technoforte <[email protected]>
Co-authored-by: kameshsr <[email protected]>
Co-authored-by: Loganathan Sekar <[email protected]>
Co-authored-by: pramod444 <[email protected]>
Co-authored-by: syed salman <[email protected]>
Co-authored-by: ckm007 <[email protected]>
Co-authored-by: Mahesh-Binayak <[email protected]>
Co-authored-by: M1044292 <[email protected]>
Co-authored-by: Mohan E <[email protected]>
Co-authored-by: Neha2365 <[email protected]>
Co-authored-by: Neha Farheen <[email protected]>
Co-authored-by: Anusha Sunkada <[email protected]>
Co-authored-by: Himaja Dhanyamraju <[email protected]>
Co-authored-by: Loganathan Sekar <[email protected]>
Co-authored-by: Vishwa <[email protected]>
Co-authored-by: Rakshitha650 <[email protected]>
Co-authored-by: Akila Lakshmanan <[email protected]>
Co-authored-by: akilalakshmanan <[email protected]>

---------

Signed-off-by: Keshav Mishra <[email protected]>
Co-authored-by: Neha2365 <[email protected]>
Co-authored-by: Neha Farheen <[email protected]>
Co-authored-by: Hitesh Jain <[email protected]>
Co-authored-by: Vishwa <[email protected]>
Co-authored-by: anshulv1401 <[email protected]>
Co-authored-by: Akila Lakshmanan <[email protected]>
Co-authored-by: akilalakshmanan <[email protected]>
Co-authored-by: ase-101 <>
Co-authored-by: bhumi46 <[email protected]>
Co-authored-by: Manoj SP <[email protected]>
Co-authored-by: Loganathan Sekar <[email protected]>
Co-authored-by: Keshav Mishra <[email protected]>
Co-authored-by: syed-salman-technoforte <[email protected]>
Co-authored-by: syed-salman-technoforte <[email protected]>
Co-authored-by: kameshsr <[email protected]>
Co-authored-by: Loganathan Sekar <[email protected]>
Co-authored-by: pramod444 <[email protected]>
Co-authored-by: syed salman <[email protected]>
Co-authored-by: ckm007 <[email protected]>
Co-authored-by: Mahesh-Binayak <[email protected]>
Co-authored-by: M1044292 <[email protected]>
Co-authored-by: Mohan E <[email protected]>
Co-authored-by: Anusha Sunkada <[email protected]>
Co-authored-by: Himaja Dhanyamraju <[email protected]>
Co-authored-by: Loganathan Sekar <[email protected]>
Co-authored-by: Rakshitha650 <[email protected]>

* Code merge from develop to Release 1.2.0.1 (#1099)

* MOSIP-26891 added condition in caching (#1045)

Co-authored-by: Neha Farheen <[email protected]>

* Mosip 26891 caches in ida module should avoid caching null values (#1046)

* MOSIP-26891 added condition in caching

* modified the conditions

---------

Co-authored-by: Neha Farheen <[email protected]>

* Mosip 26891 caches in ida module should avoid caching null values (#1047)

* MOSIP-26891 added condition in caching

* modified the conditions

* condition changed

---------

Co-authored-by: Neha Farheen <[email protected]>

* Mosip 26891 caches in ida module should avoid caching null values (#1048)

* MOSIP-26891 added condition in caching

* modified the conditions

* condition changed

* condition changed

---------

Co-authored-by: Neha Farheen <[email protected]>

* Mosip 26891 caches in ida module should avoid caching null values (#1049)

* MOSIP-26891 added condition in caching

* modified the conditions

* condition changed

* condition changed

* condition changed

---------

Co-authored-by: Neha Farheen <[email protected]>

* [BUGFIX] [ES-176]

Handles the scenario when no claims are accepted from a set of optional claims
sub parameter is added to consented claim by default if it is emptywq

* iat validation corrected

* [MOSIP-28622] fixed firstname, lastname not populating in e-signet issue.

* [MOSIP-28484] Added error handling for deploy.sh script (#1061)

* [MOSIP-28484] Added error handling for deploy.sh script

* [MOSIP-28484] Updated error handling for deploy.sh script

* [MOSIP-28484] Removed exit command

---------

Co-authored-by: akilalakshmanan <[email protected]>

* Implemented the VCI plugin in IDA

* Format the code

* Changes done

* Changes done

* Changes done

* Decrypted the individualId

* [ES-186] Added new Vci Exchange API to add support for VCI.

* Added new repo for LD signature library. (#1075)

* updated push trigger to include settings.xml for sonar analysis and fixed start up error.

* removed show progress argument for wget command to display download progress.

* ES-107

* Fixed the cache read issue

* ES-187

* ES-187

* [ES-186] Fixed integration issues.

* ES-187

* [ES-186] changed the VC ID to UUID instead of PSUT and added locales.

* [MOSIP-29163] updated reusable workflows (#1088)

* merge from release-1.2.0.1 to develop (#1089)

* [MOSIP-21002] Updated kyc error response to have kycStatus and updated db scripts (#872)

* Update 1.2_ida-scripts_release.sql (#852)

* [MOSIP-21072] Fixed db scripts for upgrade (#865)

* [MOSIP-18655] reverted EnvUtil as RefreshScope

* [MOSIP-18655] Ignoring test cases temporarily

* [MOSIP-18655] Updated EnvUtil to implement env methods

* [MOSIP-18655] Ignoring test cases temporarily

* [MOSIP-18655] Ignoring test cases temporarily

* [MOSIP-18655] reverted EnvUtil as RefreshScope

* [MOSIP-18655] reverted EnvUtil as RefreshScope

* [MOSIP-18655] Updated EnvUtil to implement env methods

* [MOSIP-18655] reverted EnvUtil as RefreshScope

* [MOSIP-18655] Updated EnvUtil to implement env methods

* [MOSIP-18655] reverted EnvUtil as RefreshScope

* [MOSIP-18655] Updated EnvUtil to implement env methods

* [MOSIP-18655] reverted EnvUtil as RefreshScope

* [MOSIP-18655] Updated EnvUtil to implement env methods

* [MOSIP-21072] Fixed db scripts for upgrade

* [MOSIP-21002] Updated kyc error response to have kycStatus (#868)

* Revert "[MOSIP-21072] Fixed db scripts for upgrade (#865)" (#869)

This reverts commit bed76a2ddce57a407a174fd6d682b946cb2b220f.

* [MOSIP-21002] Updated kyc error response to have kycStatus and updated db release scripts (#871)

* Revert "[MOSIP-21072] Fixed db scripts for upgrade (#865)"

This reverts commit bed76a2ddce57a407a174fd6d682b946cb2b220f.

* [MOSIP-21072] reverted release script changes

* [MOSIP-21072] reverted release script changes

* Revert "[MOSIP-21072] reverted release script changes"

This reverts commit 4cbb9899f3acc69c3383b339176937ebb1877b0e.

* [MOSIP-21072] updated db release scripts (#873)

* Revert "[MOSIP-21072] Fixed db scripts for upgrade (#865)"

This reverts commit bed76a2ddce57a407a174fd6d682b946cb2b220f.

* [MOSIP-21072] reverted release script changes

* [MOSIP-21072] reverted release script changes

* Revert "[MOSIP-21072] reverted release script changes"

This reverts commit 4cbb9899f3acc69c3383b339176937ebb1877b0e.

* [MOSIP-21072] updated db release scripts

* [MOSIP-21072] Updated exception handling for ekyc (#874)

* Revert "[MOSIP-21072] Fixed db scripts for upgrade (#865)"

This reverts commit bed76a2ddce57a407a174fd6d682b946cb2b220f.

* [MOSIP-21072] reverted release script changes

* [MOSIP-21072] reverted release script changes

* Revert "[MOSIP-21072] reverted release script changes"

This reverts commit 4cbb9899f3acc69c3383b339176937ebb1877b0e.

* [MOSIP-21072] updated db release scripts

* [MOSIP-21072] Fixed test case

* [MOSIP-20984] added support for bio type to be case insensitive (#875)

* Revert "[MOSIP-21072] Fixed db scripts for upgrade (#865)"

This reverts commit bed76a2ddce57a407a174fd6d682b946cb2b220f.

* [MOSIP-21072] reverted release script changes

* [MOSIP-21072] reverted release script changes

* Revert "[MOSIP-21072] reverted release script changes"

This reverts commit 4cbb9899f3acc69c3383b339176937ebb1877b0e.

* [MOSIP-21072] updated db release scripts

* [MOSIP-21072] Fixed test case

* [MOSIP-20984] added support for bio type to be case insensitive

Co-authored-by: Loganathan Sekar <[email protected]>

* [MOSIP-20020] Update release_changes.yml

* [ MOSIP-20021 ] updated release_changes.yml to update README.md badges

* [MOSIP-20028] added action for tagging

* Added pre-expire-days & access-allowed values in DB release script. (#897)

* release file name changes.

* MOSIP-23611- Added flag to enable missing credential retrigger. Disabled by default

* Added logger

* release file name changes.

* release file name changes.

* Test case fix

* Release Bot Pre-release changes

* Update README.md

* updated snapshot url in push_trigger.yaml

* Added auth context class in internal and otp service, renamed the db script files.

* Removed not null constraint to policy id and added kycexchange exception handler.

* [DSD-1944] updated keymanager version

* updated sonar token

* Release Bot Pre-release changes

* Update README.md

* Code from develop branch. (#1000)

* resolved merge conflicts.

* [MOSIP-20020] Update release_changes.yml

* [ MOSIP-20021 ] updated release_changes.yml to update README.md badges

* [MOSIP-20028] added action for tagging

* Added pre-expire-days & access-allowed values in DB release script. (#897)

* release file name changes.

* Added auth context class in internal and otp service, renamed the db script files.

* removed not null constraint for policy_id in misp license data.

* [DSD-1935]added new token to check sonar_token functionality

* [DSD-1935]Updated sonar token

* MOSIP-25606 Fixed OIDC Client create/update and corrected address claim attributes.

* Added audit entry for kyc exchange and updated idhash in audit entry instead of individual id.

* Fixed bugs MOSIP-25718, MOSIP-25717 add opencv jar file for image conversion performance.

* Fixed test case.

* MOSIP-25757: Created esignet-integration-impl

* Removed mock implementations

* Changed class name

* Changed package name

* Changed esignet dependency scope

* Added ignore on failed test cases

* Added new Identity key binding API in ida service.

* MOSIP-25855: Added getAllKycSigningCertificates

* Added default values

* Removed Authentication Header

* Added test classes

* Modified test cases

* MOSIP-25324

* Added tables in ddl.sql

* [MOSIP-25637] Updated postgres-init_trigger.yml workflow (#965)

* [MOSIP-25637] Updated postgres-init_trigger.yml workflow

* Update postgres-init_trigger.yml

* [MOSIP-25637] Updated postgres-init_trigger.yml workflow (#966)

* Changes in biomatcher Util for unknown data (#971)

Co-authored-by: Neha Farheen <[email protected]>

* Mosip 26307 change in ida to correct bio sub type value sent in the match request (#972)

* Changes in biomatcher Util for unknown data

* Bug fixed

---------

Co-authored-by: Neha Farheen <[email protected]>
Co-authored-by: Loganathan Sekar <[email protected]>

* MOSIP-26295: Auditor implementation

* MOSIP-25867

* fixed application start error.

* MOSIP-26484

* Fixed test case failures

* Fixed couple of bugs. Jira # MOSIP-26472, MOSIP-26028.

* Renamed TokenInfo to KeyBindedToken

* MOSIP-26484

* MOSIP-26484

* Added workaround for key binded auth.

* Fixed test case failure error.

* MOSIP-26484 (#985)

Co-authored-by: ase-101 <>

* Fixed audit caching issue

* Update AuthTransactionHelper.java

* Fixed auditing error

* Added Key Binded Token authentication functionality.

* ignoring the failed test case temporarily.

* Corrected the header names

* Corrected the header names

* MOSIP-25324

* MOSIP-25324

* MOSIP-25324

* MOSIP-25324

* Changed kycStatus to bindingAuthStatus

* Added debug statement.

* Fixed issue in comparing the time difference.

* DB changes added in release db scripts

* Updating certificate to all VIDs for same TokenId and changed logic in fetching the binded certificates.

---------

Co-authored-by: Keshav Mishra <[email protected]>
Co-authored-by: syed-salman-technoforte <[email protected]>
Co-authored-by: kameshsr <[email protected]>
Co-authored-by: Mahesh-Binayak <[email protected]>
Co-authored-by: M1044292 <[email protected]>
Co-authored-by: ase-101 <>
Co-authored-by: Mohan E <[email protected]>
Co-authored-by: Neha2365 <[email protected]>
Co-authored-by: Neha Farheen <[email protected]>
Co-authored-by: Loganathan Sekar <42532387+LoganathanSek…
  • Loading branch information
1 parent 00308c1 commit 5834d55
Show file tree
Hide file tree
Showing 89 changed files with 3,765 additions and 1,491 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
secrets:
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }}
OSSRH_URL: ${{ secrets.RELEASE_URL }}
OSSRH_URL: ${{ secrets.OSSRH_SNAPSHOT_URL }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
GPG_SECRET: ${{ secrets.GPG_SECRET }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
Expand Down
4 changes: 2 additions & 2 deletions authentication/authentication-authtypelockfilter-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<parent>
<groupId>io.mosip.authentication</groupId>
<artifactId>authentication-parent</artifactId>
<version>1.2.0.1-B5</version>
<version>1.2.0.1-SNAPSHOT</version>
</parent>
<version>1.2.0.1-B5</version>
<version>1.2.0.1-SNAPSHOT</version>
<artifactId>authentication-authtypelockfilter-impl</artifactId>
<name>authentication-authtypelockfilter-impl</name>
<description>ID Authentication Filter Implementation for Auth Type Lock validation</description>
Expand Down
4 changes: 2 additions & 2 deletions authentication/authentication-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<parent>
<groupId>io.mosip.authentication</groupId>
<artifactId>authentication-parent</artifactId>
<version>1.2.0.1-B5</version>
<version>1.2.0.1-SNAPSHOT</version>
</parent>
<version>1.2.0.1-B5</version>
<version>1.2.0.1-SNAPSHOT</version>
<artifactId>authentication-common</artifactId>
<name>authentication-common</name>
<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,7 @@ public class IDAMappingConfig implements MappingConfig {
/** The dynamic attributes. */
private Map<String, List<String>> dynamicAttributes;

/** The password. */
private List<String> password;

}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import io.mosip.authentication.common.service.helper.AuditHelper;
import io.mosip.authentication.common.service.helper.AuthTransactionHelper;
import io.mosip.authentication.common.service.helper.IdInfoHelper;
import io.mosip.authentication.common.service.impl.match.IdaIdMapping;
import io.mosip.authentication.common.service.integration.TokenIdManager;
import io.mosip.authentication.common.service.transaction.manager.IdAuthSecurityManager;
import io.mosip.authentication.common.service.util.AuthTypeUtil;
Expand All @@ -47,6 +48,7 @@
import io.mosip.authentication.core.indauth.dto.AuthStatusInfo;
import io.mosip.authentication.core.indauth.dto.IdType;
import io.mosip.authentication.core.indauth.dto.IdentityInfoDTO;
import io.mosip.authentication.core.indauth.dto.KycAuthRequestDTO;
import io.mosip.authentication.core.indauth.dto.EkycAuthRequestDTO;
import io.mosip.authentication.core.logger.IdaLogger;
import io.mosip.authentication.core.partner.dto.PartnerPolicyResponseDTO;
Expand All @@ -58,6 +60,7 @@
import io.mosip.authentication.core.spi.indauth.service.BioAuthService;
import io.mosip.authentication.core.spi.indauth.service.DemoAuthService;
import io.mosip.authentication.core.spi.indauth.service.OTPAuthService;
import io.mosip.authentication.core.spi.indauth.service.PasswordAuthService;
import io.mosip.authentication.core.spi.notification.service.NotificationService;
import io.mosip.authentication.core.spi.partner.service.PartnerService;
import io.mosip.kernel.core.logger.spi.Logger;
Expand Down Expand Up @@ -129,6 +132,9 @@ public class AuthFacadeImpl implements AuthFacade {

@Autowired
private KeyBindedTokenAuthService keyBindedTokenAuthService;

@Autowired
private PasswordAuthService passwordAuthService;

/*
* (non-Javadoc)
Expand Down Expand Up @@ -161,6 +167,14 @@ public AuthResponseDTO authenticateIndividual(AuthRequestDTO authRequestDTO, boo

addKycPolicyAttributes(filterAttributes, kycAuthRequestDTO);
}

if(authRequestDTO instanceof KycAuthRequestDTO) {
KycAuthRequestDTO kycAuthRequestDTO = (KycAuthRequestDTO) authRequestDTO;
// In case of kyc-auth request and password auth is requested
if(AuthTypeUtil.isPassword(kycAuthRequestDTO)) {
filterAttributes.add(IdaIdMapping.PASSWORD.getIdname());
}
}

Map<String, Object> idResDTO = idService.processIdType(idvIdType, idvid, idInfoHelper.isBiometricDataNeeded(authRequestDTO),
markVidConsumed, filterAttributes);
Expand Down Expand Up @@ -312,6 +326,11 @@ private List<AuthStatusInfo> processAuthType(AuthRequestDTO authRequestDTO,
authTxnBuilder, idvidHash);
}

if (!isMatchFailed(authStatusList)) {
processPasswordAuth(authRequestDTO, idInfo, token, isAuth, authStatusList, idType, authTokenId, partnerId,
authTxnBuilder, idvidHash);
}

return authStatusList;
}

Expand Down Expand Up @@ -383,7 +402,7 @@ private void processDemoAuth(AuthRequestDTO authRequestDTO, Map<String, List<Ide
statusInfo = demoValidationStatus;

boolean isStatus = statusInfo != null && statusInfo.isStatus();
auditHelper.audit(AuditModules.DEMO_AUTH, getAuditEvent(isAuth), idvidHash,
auditHelper.audit(AuditModules.DEMO_AUTH, getAuditEvent(isAuth), authRequestDTO.getTransactionID(),
idType, "authenticateApplicant status : " + isStatus);
} catch (IdAuthUncheckedException e) {
throw new IdAuthenticationBusinessException(e.getErrorCode(), e.getErrorText());
Expand Down Expand Up @@ -423,7 +442,7 @@ private void processOTPAuth(AuthRequestDTO authRequestDTO, String token, boolean
authStatusList.add(otpValidationStatus);

boolean isStatus = otpValidationStatus != null && otpValidationStatus.isStatus();
auditHelper.audit(AuditModules.OTP_AUTH, getAuditEvent(isAuth), idvidHash,
auditHelper.audit(AuditModules.OTP_AUTH, getAuditEvent(isAuth), authRequestDTO.getTransactionID(),
idType, "authenticateApplicant status : " + isStatus);
} finally {
boolean isStatus = otpValidationStatus != null && otpValidationStatus.isStatus();
Expand Down Expand Up @@ -464,16 +483,16 @@ private void saveAndAuditBioAuthTxn(AuthRequestDTO authRequestDTO, String token,
String status = "authenticateApplicant status : " + isStatus;
if (AuthTransactionHelper.isFingerAuth(authRequestDTO, env)) {
auditHelper.audit(AuditModules.FINGERPRINT_AUTH, getAuditEvent(!isInternal),
idvidHash, idType, status);
authRequestDTO.getTransactionID(), idType, status);
authTxnBuilder.addRequestType(RequestType.FINGER_AUTH);
}
if (AuthTransactionHelper.isIrisAuth(authRequestDTO, env)) {
auditHelper.audit(AuditModules.IRIS_AUTH, getAuditEvent(!isInternal), idvidHash,
auditHelper.audit(AuditModules.IRIS_AUTH, getAuditEvent(!isInternal), authRequestDTO.getTransactionID(),
idType, status);
authTxnBuilder.addRequestType(RequestType.IRIS_AUTH);
}
if (AuthTransactionHelper.isFaceAuth(authRequestDTO, env)) {
auditHelper.audit(AuditModules.FACE_AUTH, getAuditEvent(!isInternal), idvidHash,
auditHelper.audit(AuditModules.FACE_AUTH, getAuditEvent(!isInternal), authRequestDTO.getTransactionID(),
idType, status);
authTxnBuilder.addRequestType(RequestType.FACE_AUTH);
}
Expand Down Expand Up @@ -503,7 +522,7 @@ private void processTokenAuth(AuthRequestDTO authRequestDTO, Map<String, List<Id
authStatusList.add(tokenValidationStatus);

boolean isStatus = tokenValidationStatus != null && tokenValidationStatus.isStatus();
auditHelper.audit(AuditModules.TOKEN_AUTH, getAuditEvent(isAuth), idvidHash,
auditHelper.audit(AuditModules.TOKEN_AUTH, getAuditEvent(isAuth), authRequestDTO.getTransactionID(),
idType, "authenticateApplicant status : " + isStatus);
} finally {
boolean isStatus = tokenValidationStatus != null && tokenValidationStatus.isStatus();
Expand All @@ -513,5 +532,39 @@ private void processTokenAuth(AuthRequestDTO authRequestDTO, Map<String, List<Id
}
}
}

/**
*
* @param authRequestDTO
* @param token
* @param isAuth
* @param authStatusList
* @param idType
* @param authTokenId
* @param partnerId
* @param authTxnBuilder
* @param idvidHash
* @throws IdAuthenticationBusinessException
*/
private void processPasswordAuth(AuthRequestDTO authRequestDTO, Map<String, List<IdentityInfoDTO>> idInfo, String token,
boolean isAuth, List<AuthStatusInfo> authStatusList, IdType idType, String authTokenId, String partnerId,
AuthTransactionBuilder authTxnBuilder, String idvidHash) throws IdAuthenticationBusinessException {
if (AuthTypeUtil.isPassword(authRequestDTO)) {
AuthStatusInfo passwordMatchStatus = null;
try {
passwordMatchStatus = passwordAuthService.authenticate(authRequestDTO, token, idInfo, partnerId);
authStatusList.add(passwordMatchStatus);

boolean isStatus = passwordMatchStatus != null && passwordMatchStatus.isStatus();
auditHelper.audit(AuditModules.PASSWORD_AUTH, AuditEvents.PASSWORD_BASED_AUTH_REQUEST, authRequestDTO.getTransactionID(),
idType, "authenticateApplicant status(Password) : " + isStatus);
} finally {
boolean isStatus = passwordMatchStatus != null && passwordMatchStatus.isStatus();
logger.info(IdAuthCommonConstants.SESSION_ID, EnvUtil.getAppId(),
AUTH_FACADE, "Password Authentication status : " + isStatus);
authTxnBuilder.addRequestType(RequestType.PASSWORD_AUTH);
}
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,12 @@ protected String consumeResponse(ResettableStreamHttpServletRequest requestWrapp
String requestSignature = requestWrapper.getHeader(SIGNATURE);
String responseSignature = null;
if(isSigningRequired()) {
if (Objects.isNull(responseAsString) || responseAsString.trim().length() == 0) {
mosipLogger.error(IdAuthCommonConstants.SESSION_ID, EVENT_FILTER, BASE_IDA_FILTER,
" Response String is null or empty for response (JWT) signing");
throw new IdAuthenticationAppException(IdAuthenticationErrorConstants.UNABLE_TO_PROCESS.getErrorCode(),
IdAuthenticationErrorConstants.UNABLE_TO_PROCESS.getErrorMessage());
}
responseSignature = keyManager.signResponse(responseAsString);
responseWrapper.setHeader(EnvUtil.getSignResponse(), responseSignature);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
import javax.servlet.ServletException;

import io.mosip.authentication.core.indauth.dto.KeyBindedTokenDTO;
import io.mosip.authentication.core.indauth.dto.KycAuthRequestDTO;

import org.apache.commons.codec.binary.Base64;
import org.apache.commons.codec.digest.DigestUtils;
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
Expand Down Expand Up @@ -843,6 +845,7 @@ protected void checkAllowedAuthTypeForKeyBindedToken(Map<String, Object> request
Object value = Optional.ofNullable(requestBody.get(IdAuthCommonConstants.REQUEST))
.filter(obj -> obj instanceof Map).map(obj -> ((Map<String, Object>) obj).get(KEY_BINDED_TOKEN))
.filter(obj -> obj instanceof List).orElse(Collections.emptyMap());

List<KeyBindedTokenDTO> list = mapper.readValue(mapper.writeValueAsBytes(value),
new TypeReference<List<KeyBindedTokenDTO>>() {
});
Expand All @@ -861,6 +864,19 @@ protected void checkAllowedAuthTypeForKeyBindedToken(Map<String, Object> request
}
}

protected void checkAllowedAuthTypeForPassword(Map<String, Object> requestBody, List<AuthPolicy> authPolicies)
throws IdAuthenticationAppException, IOException {
KycAuthRequestDTO authRequestDTO = mapper.readValue(mapper.writeValueAsBytes(requestBody),
KycAuthRequestDTO.class);

if (AuthTypeUtil.isPassword(authRequestDTO) && !isAllowedAuthType(MatchType.Category.PWD.getType(), authPolicies)) {
throw new IdAuthenticationAppException(
IdAuthenticationErrorConstants.AUTHTYPE_NOT_ALLOWED.getErrorCode(),
String.format(IdAuthenticationErrorConstants.AUTHTYPE_NOT_ALLOWED.getErrorMessage(),
MatchType.Category.PWD.name()));
}
}

/**
* Check allowed auth type for bio.
*
Expand Down Expand Up @@ -1042,16 +1058,25 @@ private void checkAllowedAMRBasedOnClientConfig(Map<String, Object> requestBody,

if (AuthTypeUtil.isPin(authRequestDTO) && !allowedAMRs.contains(MatchType.Category.SPIN.getType())) {
throw new IdAuthenticationAppException(
IdAuthenticationErrorConstants.AUTHTYPE_NOT_ALLOWED.getErrorCode(),
String.format(IdAuthenticationErrorConstants.AUTHTYPE_NOT_ALLOWED.getErrorMessage(),
IdAuthenticationErrorConstants.OIDC_CLIENT_AUTHTYPE_NOT_ALLOWED.getErrorCode(),
String.format(IdAuthenticationErrorConstants.OIDC_CLIENT_AUTHTYPE_NOT_ALLOWED.getErrorMessage(),
MatchType.Category.SPIN.name()));
}
if (AuthTypeUtil.isOtp(authRequestDTO) && !allowedAMRs.contains(MatchType.Category.OTP.getType())) {
throw new IdAuthenticationAppException(
IdAuthenticationErrorConstants.AUTHTYPE_NOT_ALLOWED.getErrorCode(),
String.format(IdAuthenticationErrorConstants.AUTHTYPE_NOT_ALLOWED.getErrorMessage(),
IdAuthenticationErrorConstants.OIDC_CLIENT_AUTHTYPE_NOT_ALLOWED.getErrorCode(),
String.format(IdAuthenticationErrorConstants.OIDC_CLIENT_AUTHTYPE_NOT_ALLOWED.getErrorMessage(),
MatchType.Category.OTP.name()));
}

KycAuthRequestDTO kycAuthRequestDTO = mapper.readValue(mapper.writeValueAsBytes(requestBody),
KycAuthRequestDTO.class);
if (AuthTypeUtil.isPassword(kycAuthRequestDTO) && !allowedAMRs.contains(MatchType.Category.PWD.getType())) {
throw new IdAuthenticationAppException(
IdAuthenticationErrorConstants.OIDC_CLIENT_AUTHTYPE_NOT_ALLOWED.getErrorCode(),
String.format(IdAuthenticationErrorConstants.OIDC_CLIENT_AUTHTYPE_NOT_ALLOWED.getErrorMessage(),
MatchType.Category.PWD.name()));
}
checkAllowedAMRForKBT(requestBody, allowedAMRs);
}
} catch (IOException e) {
Expand Down Expand Up @@ -1119,19 +1144,28 @@ private Set<String> getAuthenticationFactors(PartnerPolicyResponseDTO partnerPol
* @param requestWrapper the request wrapper
* @return the auth part
*/
protected Map<String, String> getAuthPart(ResettableStreamHttpServletRequest requestWrapper) {
protected Map<String, String> getAuthPart(ResettableStreamHttpServletRequest requestWrapper) throws IdAuthenticationAppException{
Map<String, String> params = new HashMap<>();
String url = requestWrapper.getRequestURL().toString();
String contextPath = requestWrapper.getContextPath();
if ((Objects.nonNull(url) && !url.isEmpty()) && (Objects.nonNull(contextPath) && !contextPath.isEmpty())) {
String[] splitedUrlByContext = url.split(contextPath);
String[] paramsArray = Stream.of(splitedUrlByContext[1].split("/")).filter(str -> !str.isEmpty())
.toArray(size -> new String[size]);
.toArray(size -> new String[size]);
mosipLogger.info(IdAuthCommonConstants.SESSION_ID, this.getClass().getCanonicalName(), "getAuthPart",
"List of Path Parameters received in url: " + Stream.of(paramsArray).collect(Collectors.joining(", ")));

if (paramsArray.length >= 3) {
params.put(MISPLICENSE_KEY, paramsArray[paramsArray.length - 3]);
params.put(PARTNER_ID, paramsArray[paramsArray.length - 2]);
params.put(API_KEY, paramsArray[paramsArray.length - 1]);
} else {
mosipLogger.error(IdAuthCommonConstants.SESSION_ID, this.getClass().getCanonicalName(), "getAuthPart",
"Required Number of Path Parameters are not available in URL.");
throw new IdAuthenticationAppException(
IdAuthenticationErrorConstants.URI_PATH_PARAMS_MISSING.getErrorCode(),
IdAuthenticationErrorConstants.URI_PATH_PARAMS_MISSING.getErrorMessage());

}
}
return params;
Expand Down
Loading

0 comments on commit 5834d55

Please sign in to comment.