Hi,
We are trying to implement the M1 milestones.
As part of that, /users/auth/fetch-modes, /users/auth/on-fetch-modes, users/auth/init and users/auth/on-init are implemented successfully.
For the API “users/auth/confirm” -> request response received is 202 Accepted.
But the “users/auth/on-confirm” is received only when a valid mobile OTP is entered. When an invalid OTP or any other auth method is chosen, on-confirm response is not received…
Below is the response of confirm method.
rawResponse is HttpResponseProxy{HTTP/1.1 202 Accepted [correlation-id: aa241e6d-afd6-4cfd-b8e2-511aad24db15, cache-control: no-cache, no-store, max-age=0, must-revalidate, pragma: no-cache, expires: 0, x-content-type-options: nosniff, strict-transport-security: max-age=31536000 ; includeSubDomains, x-frame-options: DENY, x-xss-protection: 1 ; mode=block, referrer-policy: no-referrer, content-length: 0, x-envoy-upstream-service-time: 14, date: Wed, 20 Jul 2022 08:36:09 GMT, Set-Cookie: TS011c04bd=01115a1c906ee17cf8f5321423cad23f9a15e001ded289b48cb10b031bf66a9173c1643f7029d6a62f51a2a7de4be0a45a1e270ded; Path=/] [Content-Length: 0,Chunked: false]}
Input is as follows for Valid Mobile OTP:
{“requestId”:“d4ba43a5-ab57-46e3-8bfd-f52ce902e676”,“timestamp”:“2022-07-20T08:36:03.935Z”,“transactionId”:“dc4c8ef3-5191-452d-9c13-4801ed5dca46”,“credential”:{“authCode”:“798294”}}
Below is the request and response for password -> in this case on-confirm is received.:
jsonFinalStr {“requestId”:“99860550-1ab4-4350-b9eb-66fced0062b9”,“timestamp”:“2022-07-20T08:45:41.621Z”,“transactionId”:“33de54eb-3eeb-42e2-8e74-42d87abd8fcf”,“credential”:{“authCode”:“krishna1”}}
post Request is POST https://dev.abdm.gov.in/gateway/v0.5/users/auth/confirm HTTP/1.1
rawResponse is HttpResponseProxy{HTTP/1.1 202 Accepted [correlation-id: bdd59907-687d-4dca-a2d5-af87f63ef22b, cache-control: no-cache, no-store, max-age=0, must-revalidate, pragma: no-cache, expires: 0, x-content-type-options: nosniff, strict-transport-security: max-age=31536000 ; includeSubDomains, x-frame-options: DENY, x-xss-protection: 1 ; mode=block, referrer-policy: no-referrer, content-length: 0, x-envoy-upstream-service-time: 12, date: Wed, 20 Jul 2022 08:45:47 GMT, Set-Cookie: TS011c04bd=01115a1c90b0cb16d5028fceaea5031f4294be520a9951184e6c629449a95cbe266836898570234078668df58153fb3da628a5e4e7; Path=/] [Content-Length: 0,Chunked: false]}
Please look into this issue.