Skip to content

MOSIP-40407: OTP notifications and authentication alerts are still be received on a locked channel. #1716

@Ivanmeneges

Description

@Ivanmeneges
  1. Create a UIN

  2. lock otp-email auth type using auth lock api

{
"request": {
"otp": "403307",
"individualId": "3860563206",
"authType": [
"otp-email"
],
"transactionID": "7571026410",
"individualIdType": "UIN"
},
"requesttime": "2025-03-03T06:34:11.561Z",
"id": "mosip.resident.authlock",
"version": "v1"
}

response:

{
"id": "mosip.resident.authlock",
"version": "v1",
"responsetime": "2025-03-03T06:34:11.916Z",
"response": {
"message": "Notification has been sent to the provided contact detail(s)"
}
}

image-20250303-105245.png

  1. Try to send otp on locked channel along with unlocked channel

send-otp:

{
"id": "mosip.identity.otp",
"version": "1.0",
"transactionID": "7571026410",
"requestTime": "2025-03-03T06:36:45.230Z",
"individualId": "3860563206",
"individualIdType": "UIN",
"otpChannel": [
"EMAIL",
"PHONE"
]
}

Response:

{
"id": "mosip.identity.otp",
"version": "1.0",
"transactionID": "7571026410",
"responseTime": "2025-03-03T06:36:46.267Z",
"response": {
"maskedMobile": "XXXXXX6198",
"maskedEmail": "XXtXXAXXIXXnXXtXXVXXiXXaXXmXXeXX_XXLXXkXXmXXlXXeXXrXXOXXEXXiXXaXXhXXmXXeXXoX@mosip.net"
}
}

Observed Output: OTP notifications are being received on the locked channel.

image-20250303-093143.png

Expected Output: OTP notifications should only be received on an unlocked channel.

attaching the report also for the reference:

mosip-api-internal.qa-java21-auth-2025-03-03_12-02-full-report_T-3_P-2_S-0_F-1.html

📎 Attachments

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions