Health Locker Authorization not getting proper response

At the time of the application to NDHM Sandbox, we applied for Health Locker services as well. I would like to know, if we need to do anything extra for:

  • I am asking this specifically as we need to use the API /v0.5/users/auth/init with authMode = “DIRECT” for validating the user after signup.
  • If we try the above, we just receive a status code 202 and receive an /v0.5/users/auth/on-init callback with the following response:

image

  • My expectation as per the flow diagram is /v0.5/users/auth/notify should be triggered.
  • We (Health Locker) then, need to trigger a corresponding /v0.5/users/auth/on-notify.

Appreciate your feedback @IntegrationSupport

Regards,
Himanshu Singh

@himanshu0502
have you implemented /subscription-requests/cm/init API?

@IntegrationSupport Yes firstly we called this API ("/subscription-requests/cm/init") and after that, we called this API (“https://dev.abdm.gov.in/gateway/v0.5/users/auth/init”) but in the first request we got Bad request as a response and in second we didn’t get any response. For reference, I’m attaching CURL and images

Subscription CURL
curl --location ‘https://dev.abdm.gov.in/gateway/v0.5/subscription-requests/cm/init
–header ‘X-CM-ID: sbx’
–header ‘Content-Type: application/json’
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2ODcxNzAzMzEsImlhdCI6MTY4NzE2OTczMSwianRpIjoiN2VlM2JhOWQtNTQ4Ni00ZmJmLWJhMTYtMzQwMDQyZmI1ZGMyIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJkZjIzMTFiYi0wODVlLTQxNjEtYWMyNC0wYzA3M2NjNDFhZTciLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAzMjc5Iiwic2Vzc2lvbl9zdGF0ZSI6IjMyMGZjNGI0LTMxMmQtNGE2OC1hZjlmLWM3NDNiYTk3ZWIzNyIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwiT0lEQyIsImhlYWx0aF9sb2NrZXIiLCJoaXAiXX0sInJlc291cmNlX2FjY2VzcyI6eyJTQlhfMDAzMjc5Ijp7InJvbGVzIjpbInVtYV9wcm90ZWN0aW9uIl19LCJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2ZpbGUiXX19LCJzY29wZSI6Im9wZW5pZCBlbWFpbCBwcm9maWxlIiwiY2xpZW50SG9zdCI6IjEwLjIzMy42Ny40MiIsImNsaWVudElkIjoiU0JYXzAwMzI3OSIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LXNieF8wMDMyNzkiLCJjbGllbnRBZGRyZXNzIjoiMTAuMjMzLjY3LjQyIn0.di6I2Col_NecVbdWpNdkZw0E4qBcgRdSBNwNzcJGzcIMIZJxhRkNaCI1LkXzinMmXJj44PqW-UIemyTn4woh6kLL2SgD7F2rpKvhzVEvdkGGa_uZ9pGq7d5syihWTVoYhncwxT74tHVRoWtT__EPrYtlFtGwIVcRYnDaCXFperGciCh9H14R0wclVHb3g6gS_T0zz_0fkgpM0AbpjUEpo0lvjXI9Oa5u0sZz73185_vW0FClwCYMXYxjHypGMeeJDHLXfBLti1lYod5Pxkn6sIRThhoE4AnOQHnySp2ZlDERr-Sang4tlEyMkYPZcD6wsHGR20oWubemHzjl91Ot0g’
–header ‘Cookie: TS011c04bd=01445fed04ee48c1fe605975fd09b00cc77770361d3282cb5c9265872a01bd85e2c3f411b36fb56297534f1a7dd84d021f24b832be’
–data-raw ‘{
“requestId”: “708de54a-1549-49d3-a9fb-7d6110b01520”,
“timestamp”: “2023-06-19T10:31:29.701Z”,
“subscription”: {
“purpose”: {
“text”: “Self Requested”,
“code”: “PATRQT”
},
“patient”: {
“id”: “gautam654@sbx”
},
“hiu”: {
“id”: “YoreLocker2023”
},
“hips”: [
{
“id”: “Yore_Locker_HIP”
}
],
“categories”: [
“LINK”,“DATA”
],
“period”: {
“from”: “2010-01-31T08:54:51.397Z”,
“to”: “2030-01-31T08:54:51.397Z”
}
}
}’
Response

auth/init CURL
curl --location ‘https://dev.abdm.gov.in/gateway/v0.5/users/auth/init
–header ‘accept: /
–header ‘X-CM-ID: sbx’
–header ‘Content-Type: application/json’
–header ‘Accept: application/json’
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2ODcxNzAzMzEsImlhdCI6MTY4NzE2OTczMSwianRpIjoiN2VlM2JhOWQtNTQ4Ni00ZmJmLWJhMTYtMzQwMDQyZmI1ZGMyIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJkZjIzMTFiYi0wODVlLTQxNjEtYWMyNC0wYzA3M2NjNDFhZTciLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAzMjc5Iiwic2Vzc2lvbl9zdGF0ZSI6IjMyMGZjNGI0LTMxMmQtNGE2OC1hZjlmLWM3NDNiYTk3ZWIzNyIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwiT0lEQyIsImhlYWx0aF9sb2NrZXIiLCJoaXAiXX0sInJlc291cmNlX2FjY2VzcyI6eyJTQlhfMDAzMjc5Ijp7InJvbGVzIjpbInVtYV9wcm90ZWN0aW9uIl19LCJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2ZpbGUiXX19LCJzY29wZSI6Im9wZW5pZCBlbWFpbCBwcm9maWxlIiwiY2xpZW50SG9zdCI6IjEwLjIzMy42Ny40MiIsImNsaWVudElkIjoiU0JYXzAwMzI3OSIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LXNieF8wMDMyNzkiLCJjbGllbnRBZGRyZXNzIjoiMTAuMjMzLjY3LjQyIn0.di6I2Col_NecVbdWpNdkZw0E4qBcgRdSBNwNzcJGzcIMIZJxhRkNaCI1LkXzinMmXJj44PqW-UIemyTn4woh6kLL2SgD7F2rpKvhzVEvdkGGa_uZ9pGq7d5syihWTVoYhncwxT74tHVRoWtT__EPrYtlFtGwIVcRYnDaCXFperGciCh9H14R0wclVHb3g6gS_T0zz_0fkgpM0AbpjUEpo0lvjXI9Oa5u0sZz73185_vW0FClwCYMXYxjHypGMeeJDHLXfBLti1lYod5Pxkn6sIRThhoE4AnOQHnySp2ZlDERr-Sang4tlEyMkYPZcD6wsHGR20oWubemHzjl91Ot0g’
–header ‘Cookie: TS011c04bd=01445fed04ee48c1fe605975fd09b00cc77770361d3282cb5c9265872a01bd85e2c3f411b36fb56297534f1a7dd84d021f24b832be’
–data-raw ‘{
“requestId”: “83eb30bc-95dd-4706-9f9d-16bf451bc5f7”,
“timestamp”: “2023-06-19T10:31:09.673Z”,
“query”: {
“id”: “gautam654@sbx”,
“purpose”: “KYC_AND_LINK”,
“authMode”: “DIRECT”,
“requester”: {
“type”: “HEALTH_LOCKER”,
“id”: “YoreLocker2023”
}
}
}’

Thanks for your fast assistance and please look into it.
Kindly update asap.

Regards,
Himanshu Singh

@himanshu0502 We have escalated the concerned issue with tech team. Will revert with resolution soon.

@himanshu0502 We did not find the request for the above requested-id. Please try again and share the request-id with us.
Attaching the screenshot for your reference.

@IntegrationSupport, this is the request_Id (“8da1f314-d21f-45b3-98f3-b57a03385678”) I was sending this time. I am not getting any response but still showing Status 200. For your reference, I am attaching the images and curl

curl --location ‘https://dev.abdm.gov.in/gateway/v0.5/users/auth/init
–header ‘accept: /
–header ‘X-CM-ID: sbx’
–header ‘Content-Type: application/json’
–header ‘Accept: application/json’
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2ODczMjg3MzEsImlhdCI6MTY4NzMyODEzMSwianRpIjoiNjZkMDU0OWItYjZiNi00MzEzLWJlODctYjY4NTljYTFlZjI5IiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJkZjIzMTFiYi0wODVlLTQxNjEtYWMyNC0wYzA3M2NjNDFhZTciLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAzMjc5Iiwic2Vzc2lvbl9zdGF0ZSI6ImY0MTVjZTZkLTBmODMtNDdjZi1hM2NiLWViN2U1MmZjMWJhMSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwiT0lEQyIsImhlYWx0aF9sb2NrZXIiLCJoaXAiXX0sInJlc291cmNlX2FjY2VzcyI6eyJTQlhfMDAzMjc5Ijp7InJvbGVzIjpbInVtYV9wcm90ZWN0aW9uIl19LCJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2ZpbGUiXX19LCJzY29wZSI6Im9wZW5pZCBlbWFpbCBwcm9maWxlIiwiY2xpZW50SG9zdCI6IjEwLjIzMy42Ny40MiIsImNsaWVudElkIjoiU0JYXzAwMzI3OSIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LXNieF8wMDMyNzkiLCJjbGllbnRBZGRyZXNzIjoiMTAuMjMzLjY3LjQyIn0.UGBu9oXJTkCsvvNr4HbtukH45rItzLGJmgDlBaRdjUMw0qsBSFZA6fD37nACWvygBPx1Vw7bXfjcmoHUs0IiQ0kO0HUZLe7OLI0ASW9YpCmczl2wWiTEirE0w_21Z3Ud_LGcWWOWnt8eA2VxxA1l14NBkXk7N4d7326e_QiaizOaezUd1fxfTPtaFp0inVJfrff4ikS7e8rg9zQC0qlpHw4JjsOVioV_gbvwnCKikNU5dcEO99kvrTu0E9x986H3xHtu9CHmyloKG88xsi9IPBpnz64Et_nPgw6umrKsq8x27TVYwLYR00xXqrZCmeue1RzTcOrokIVCHX-K67sbiA’
–header ‘Cookie: TS011c04bd=01445fed041eb12df0944a4d2b09d96799d9e3c71189795ac2b7ab9eb36690dd38fdba2d71c14707880e84dbaa90d21534f99c1309’
–data-raw ‘{
“requestId”: “8da1f314-d21f-45b3-98f3-b57a03385678”,
“timestamp”: “2023-06-21T06:18:05.281Z”,
“query”: {
“id”: “gautam654@sbx”,
“purpose”: “KYC_AND_LINK”,
“authMode”: “DIRECT”,
“requester”: {
“type”: “HEALTH_LOCKER”,
“id”: “YoreLocker2023”
}
}
}’

Kindly look into it and update us asap