Skip to content

[mosip/id-authentication#1764] Support Auth-purpose biometric capture for IDA local runs - #2001

Merged
mohanachandran-s merged 1 commit into
mosip:developfrom
nandhu-kumar:feature/ida-apitest-local-run
Oct 29, 2026
Merged

mohanachandran-s merged 1 commit into
mosip:developfrom
nandhu-kumar:feature/ida-apitest-local-run

Conversation

@nandhu-kumar

@nandhu-kumar nandhu-kumar commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Part of mosip/id-authentication#1764 (running the IDA api-test rig against a locally running IDA).

What

Lets the IDA rig send Mock SBI biometric captures to a local IDA, where there is no /internal/encrypt and no device partner registration. Everything new is opt-in through properties that only the IDA rig's local profile (Ida-local.properties) sets. With them unset, environment runs behave as before.

  • pom: mock-mds 1.3.0-beta.1 → 1.4.0-SNAPSHOT (adds startSBIV1 with image type, and Auth-purpose CAPTURE). kernel-core pinned to 1.3.1-rc.1, which that mock-mds needs (DateUtils2).
  • MDSClient: capture purpose and env are configurable (defaults stay Registration / Developer). Auth captures use CAPTURE with a bioSubType and the run's transactionId; Registration captures are unchanged. count/requestedScore are sent as strings with an empty previousHash, which mock-mds 1.4.0 requires. Clearer errors when a capture fails or comes back empty.
  • BiometricDataProvider: keeps the session key, thumbprint, timestamp, transactionId and hash an Auth capture returns. Optional per-subtype finger/iris captures, capture profile/env/image type, and re-capture before IDA's 120 s timestamp limit (local.bio.*, mdsCapture*, mdsImageType).
  • BioDataUtility: for an Auth capture, reuses the device's encrypted bioValue, session key, thumbprint, timestamp and hash instead of re-encrypting through /internal/encrypt. Optional local encryption for non-captured bioValues (local.bio.encryptCertUrl).
  • AdminTestUtil: TRANSACTION_ID can be pinned with -DtransactionId; it stays random by default.

Impact on other modules

The mock-mds upgrade is the one change that isn't opt-in: every module using commons gets mock-mds 1.4.0. Registration captures keep the same purpose, env, method and transactionId; only the count/score/previousHash request format changes.

Testing

  • dev1, IDA smoke, repo default config: T-244 P-203 F-0 I-39, test by test the same as the run before this change. The sanitised CBEFF was accepted by idrepo, and AddIdentity plus all biometric auths passed.
  • dev1, IDA regression: T-834 P-738 F-12, the same failures as the daily report on the unchanged image (existing env/test issues tracked separately). This and the local runs below used an earlier revision that also had a CBEFF-sanitise switch; the switch was dropped once the smoke above showed it isn't needed, and these runs haven't been repeated since.
  • Local IDA: smoke 52/52; regression P-464 F-2 (2 open deactivation-code questions).

Not yet run by other modules (resident, regproc, etc.); a run from one Registration-capture module would confirm the mock-mds upgrade for them.

The rig-side changes (local suite, Ida-local.properties, bootstrap) go in a separate id-authentication PR.

@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI; Enforced overrides: Organization
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 1b8c06af-14d4-4d17-afcc-53d6a30e35b6
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nandhu-kumar
nandhu-kumar force-pushed the feature/ida-apitest-local-run branch from b10d4c4 to 16b3a5e Compare October 28, 2026 12:21
… for IDA local runs

Lets the IDA api-test rig authenticate with Mock SBI captures against a
locally running IDA. Everything new is opt-in through properties that only
the rig's local profile sets; with them unset, environment runs behave as
before.

- Upgrade mock-mds to 1.4.0-SNAPSHOT (adds startSBIV1 with image type and
  Auth-purpose CAPTURE). kernel-core is pinned to 1.3.1-rc.1, which that
  mock-mds needs (DateUtils2). Count/requestedScore are now sent as strings
  with an empty previousHash, as mock-mds 1.4.0 requires.
- MDSClient: configurable capture purpose and env; Auth captures use
  CAPTURE with a bioSubType and the run's transactionId. Registration
  captures are unchanged. Clearer errors for failed or empty captures.
- BiometricDataProvider: keep the session key, thumbprint, timestamp,
  transactionId and hash returned with an Auth capture; optional per-subtype
  finger/iris captures, capture profile/env/image type, and re-capture
  before IDA's 120s timestamp limit (local.bio.*, mdsCapture*, mdsImageType).
- BioDataUtility: reuse the capture's encrypted bioValue, session key,
  thumbprint, timestamp and hash instead of re-encrypting through
  /internal/encrypt; optional local encryption for non-captured bioValues
  (local.bio.encryptCertUrl).
- AdminTestUtil: TRANSACTION_ID can be pinned with -DtransactionId
  (default stays random).

Verified: local smoke 52/52 and regression P-464 against local IDA; dev1
smoke T-244 P-203 F-0 with the repo's default config, test by test the same
as before the change.

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>
@nandhu-kumar
nandhu-kumar force-pushed the feature/ida-apitest-local-run branch from 16b3a5e to e1003eb Compare October 29, 2026 11:42
@mohanachandran-s
mohanachandran-s merged commit 4e7143f into mosip:develop Oct 29, 2026
12 checks passed
@ckm007

ckm007 commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

🔗 Linked PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants