Getting Invalid auth confirm request. for /v0.5/users/auth/on-confirm call

Hello @Shubhanshu_Shukla , @neha.parnami

After Hitting auth/confirm call we are getting a message as “Invalid Auth Confirm Request”. Please see the below error details.

POST /v0.5/users/auth/confirm HTTP/1.1

X-CM-ID: sbx

Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NDk0OTA1MzgsImlhdCI6MTY0OTQ4OTkzOCwianRpIjoiM2U5NGQ0YTUtM2Y4OS00NmI3LWJjMGMtZDU4MmUzNGVjNzZiIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiIxNjEyNTg2Ny01ODZhLTQwZDctYWMwZC1mM2Q3Yzg4YzBlZTkiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJzdW1hc29mdCIsInNlc3Npb25fc3RhdGUiOiI2NzI3ZGQ3My1jNjhkLTQ1YmUtOGVjMy01NjAyMDgzZmIzZjciLCJhY3IiOiIxIiwiYWxsb3dlZC1vcmlnaW5zIjpbImh0dHA6Ly9sb2NhbGhvc3Q6OTAwNyJdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiaGl1Iiwib2ZmbGluZV9hY2Nlc3MiLCJoZWFsdGhJZCIsIk9JREMiLCJoZWFsdGhfbG9ja2VyIiwiaGlwIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsic3VtYXNvZnQiOnsicm9sZXMiOlsidW1hX3Byb3RlY3Rpb24iXX0sImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRIb3N0IjoiMTAuMjMzLjY3LjE2NSIsImNsaWVudElkIjoic3VtYXNvZnQiLCJlbWFpbF92ZXJpZmllZCI6ZmFsc2UsInByZWZlcnJlZF91c2VybmFtZSI6InNlcnZpY2UtYWNjb3VudC1zdW1hc29mdCIsImNsaWVudEFkZHJlc3MiOiIxMC4yMzMuNjcuMTY1In0.WYa8Akpqf_x156JoQ-UqZnaZ8cSwMJendcKIjQIK7jOiKtcQB_7ZB8jXBWOXb8GSD59Ck6i6OYIGV5EqAjk2ZOU1FWDnDQie3vcpRoFDo_dOlVndX1P8J4Ap1G6Zx1LiizzNhfwMgUkzw-cLvchrgd9tKh2GSk6DE8AaGYOYoR9nbDzgL2nENUStdTtAbBb8vUulpOLk4G-II7XsnXzgrXLBb4gfN5SeXEmAMQL5Ck47_ORbS_mrR5aBziApg_-S971zPO8ITwbtnkKfrQndoou7cE6pjxjVaoDA9ZaJZS5DxIIASxf7J9sxZjfJpkv7kj4UX7gRSMWN–au1iuAXQ

Content-Type: application/json

User-Agent: PostmanRuntime/7.29.0

Accept: /

Postman-Token: 958c006c-5fc3-469d-abbc-2ee480928f2a

Host: nha-suma-azb7fa3pfa-el.a.run.app

Accept-Encoding: gzip, deflate, br

Connection: keep-alive

Content-Length: 458

Cookie: TS011c04bd=01115a1c9063f1cfea14180f2dcbac639829fe32171f582bcecb740e4b3455f9cd7a6ddfa632590c79ba5685dc3694d14e4a52f54b; TS01c078b5=01115a1c901cdb11acd7ae1bf4e3081debb1f9cae7674f8af4b41feae4c34a9559ea3dec97f932ebee0b49a4930230103e02ce6ced

{

“requestId”: “a0cd0406-1299-4da3-8296-8cd171e692b6”,

“timestamp”: “2022-04-09T07:39:53.808Z”,

“transactionId”: “97d5f435-8167-4851-a39b-f7b39f0f3c76”,

“credential”: {

“demographic”: {

“name”: “SumaCEO”,

“gender”: “M”,

“dateOfBirth”: “1995-11-23”,

“identifier”: {

“type”: “MOBILE”,

“value”: “+919028287050”

}

}

}

}
HTTP/1.1 202 Accepted

correlation-id: 15e830f4-9bb9-421f-9140-a48c36ad99a0

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

x-envoy-upstream-service-time: 8

content-type: text/html; charset=utf-8

access-control-allow-origin: *

X-Cloud-Trace-Context: aa87f0c152ac2110c0f0d55d048c7dbd

Date: Sat, 09 Apr 2022 07:39:58 GMT

Server: Google Frontend

Content-Length: 0

Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=

Response Getting

auth/on-confirm request body -
{‘requestId’: ‘b0269509-7697-489f-abf2-44a16cb009c0’, ‘timestamp’: ‘2022-04-09T07:41:39.516287’, ‘auth’: None, ‘error’: {‘code’: 1441, ‘message’: ‘Invalid auth confirm request.’}, ‘resp’: {‘requestId’: ‘a58f1588-b83c-4e44-9eaa-d26140afc6dc’}},

@Pankaj Please look into this.

Hey @Pritesh,

Please try with below curl as url of your API seems to be different from the origin al one.

curl --location --request POST ‘http://v0.5/users/auth/confirm
–header ‘accept: /’
–header ‘X-CM-ID: abdm’
–header ‘Content-Type: application/json’
–header ‘Authorization: bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJYVE0wcTNRY3lwNzJCWWNkd2Z5WEZ3ZTFHRlNoODNRU25nOEY4UENEN2dNIn0.eyJleHAiOjE2NTE0ODQ3NjcsImlhdCI6MTY1MTQ4NDQ2NywianRpIjoiMjVkY2RmYzUtMjZlYS00ZjNiLWFhNzEtODcyMzhjZjRiZTBlIiwiaXNzIjoiaHR0cDovL2xvY2FsaG9zdDo5MDAxL2F1dGgvcmVhbG1zL2NlbnRyYWwtcmVnaXN0cnkiLCJhdWQiOiJhY2NvdW50Iiwic3ViIjoiODRmZWQxZjMtM2M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FNMk5UYupCVCOBFFtYsVZ1d88QHtJYKeqlNpNafqHh1puyFe1P-FkuO9BNaPOv65ZiVItye_OmQ’
–data-raw ‘{
“requestId”: “b2a1df29-f71b-49bf-a10f-3e9a5db8db10”,
“timestamp”: “2022-05-02T09:41:51.584000”,
“transactionId”: “8f8c27fd-5deb-4673-9b71-060ad5fcda7a”,
“credential”: {
“authCode”: “552209”
}
}’

Thanks