Unable to use client id and secret provided to hit health id apis

Hi,

For the below client and secret getting the unauthorized response, attached below are the API hits.
Please check the provided client and secret key as this is not working

Client Id : docprime_001
Client Secret :4239d931-7384-4a52-afac-31072487422b

curl --location --request POST ‘https://dev.ndhm.gov.in/gateway/v0.5/sessions
–header ‘accept: application/json’
–header ‘Content-Type: application/json’
–header ‘Cookie: TS01960242=01115a1c90a28bf1c644b063a738eefd4564a7710d729932c954ec127ebc176eb2b5fc969aead3d9fc30b59b35dcc512475fa863f3’
–data-raw ‘{
“clientId”: “docprime_001”,
“clientSecret”: “4239d931-7384-4a52-afac-31072487422b”
}’

Response -
{

"accessToken": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2MjkxODAwMjgsImlhdCI6MTYyOTE3OTQyOCwianRpIjoiMjNlZGEyZDktOThmZi00NjMzLWE0ZWEtYTM4YWZlNmQwYjU2IiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiI2NTI3Zjk4YS02N2JjLTRlZWUtYTgwYy0zMmFmZWIxYTQzZmUiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJkb2NwcmltZV8wMDEiLCJzZXNzaW9uX3N0YXRlIjoiMjM2NjZiZmItZjgxMy00YzE3LTkyMWQtNzU2ZGM5ZDQzODFkIiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyJodHRwOi8vbG9jYWxob3N0OjkwMDciXSwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIm9mZmxpbmVfYWNjZXNzIiwiaGVhbHRoX2xvY2tlciIsImhpcCJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImRvY3ByaW1lXzAwMSI6eyJyb2xlcy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Lm5kaG0uZ292LmluL2F1dGgvcmVhbG1zL2NlbnRyYWwtcmVnaXN0cnkiLCJzdWIiOiI2NTI3Zjk4YS02N2JjLTRlZWUtYTgwYy0zMmFmZWIxYTQzZmUiLCJ0eXAiOiJSZWZyZXNoIiwiYXpwIjoiZG9jcHJpbWVfMDAxIiwic2Vzc2lvbl9zdGF0ZSI6IjIzNjY2YmZiLWY4MTMtNGMxNy05MjFkLTc1NmRjOWQ0MzgxZCIsInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUifQ.cCG6auETqYAU8AnPnymlXvAyU-sWif4YPz-sJqwgN3o",

"tokenType": "bearer"

}

curl --location --request POST ‘https://healthidsbx.ndhm.gov.in/api/v1/search/existsByHealthId
–header ‘accept: /
–header ‘Accept-Language: en-US’
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2MjkxODAwMjgsImlhdCI6MTYyOTE3OTQyOCwianRpIjoiMjNlZGEyZDktOThmZi00NjMzLWE0ZWEtYTM4YWZlNmQwYjU2IiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiI2NTI3Zjk4YS02N2JjLTRlZWUtYTgwYy0zMmFmZWIxYTQzZmUiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJkb2NwcmltZV8wMDEiLCJzZXNzaW9uX3N0YXRlIjoiMjM2NjZiZmItZjgxMy00YzE3LTkyMWQtNzU2ZGM5ZDQzODFkIiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyJodHRwOi8vbG9jYWxob3N0OjkwMDciXSwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIm9mZmxpbmVfYWNjZXNzIiwiaGVhbHRoX2xvY2tlciIsImhpcCJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImRvY3ByaW1lXzAwMSI6eyJyb2xlcyI6WyJ1bWFfcHJvdGVjdGlvbiJdfSwiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwic2NvcGUiOiJvcGVuaWQgZW1haWwgcHJvZmlsZSIsImNsaWVudEhvc3QiOiIxMC4yMzMuNjguOTEiLCJlbWFpbF92ZXJpZmllZCI6ZmFsc2UsImNsaWVudElkIjoiZG9jcHJpbWVfMDAxIiwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LWRvY3ByaW1lXzAwMSIsImNsaWVudEFkZHJlc3MiOiIxMC4yMzMuNjguOTEifQ.CkLwI83q92ecrX-l8E6C9hsh_9taMHAPjtaSVSWZywJ6RBZpnUI2BJbhRl2BBSlLW6aUJ4FL6F0fmiXtfij96YJddBkuJz0YPueBTxOEifN9oXmONpnRoHnx8wccee3b65caX1yh3147ob0JriI2H3rl6wLidCUx5qhlihKTXOk8vYWhrgY2VvVfogayRz38Mdj47f5_ANTdgtZnEOTzI8vOhLewF_VirJJq0U8_GbXJOxxfg0EyGXaxSP4UCkOAnDqqExDphkBbwkjSNK8PybAYunvU4ubUyVxyxltVx4anmX1o1zWbLsAcNfjPsn5Ry3xNuytvqXdD5ewwEuGw6A’
–header ‘X-HIP-ID: DOCPRIME_UAT_LOCKER’
–header ‘Content-Type: application/json’
–header ‘Cookie: TS01c078b5=01115a1c901a3df006519b8151cbca13c182deee42fca11f07b6f85c1dda8a7110b4ec5c50df9001cba807b4340106b5025ba85332’
–data-raw ‘{ “healthId”: “eight.test@sbx”}’

Response from the above api using the token generated by sessions api-
{
“timestamp”: “2021-08-17T05:51:10.440+0000”,
“status”: 401,
“error”: “Unauthorized”,
“message”: “Unauthorized”,
“path”: “/api/v1/search/existsByHealthId”
}

Thanks,
Rachit

Hey @rachit,

Can you please try now,
let us know if issue still persists.

Thank You

Hi @Shubhanshu_Shukla,

Still getting the same error.

Hey @rachit,

Can you please help us with request-body so that we can trace it.

Thank You

Hi @Shubhanshu_Shukla,

Already mentioned the problem in the thread above, I can again post the request curls which I retired, PFB -

curl --location --request POST ‘https://dev.ndhm.gov.in/gateway/v0.5/sessions’ \

–header ‘accept: application/json’ \

–header ‘Content-Type: application/json’ \

–header ‘Cookie: TS01960242=01115a1c90a7bc3416b981d3b7874ae91bed94b8a7cf13ff5b19d6593bf3bfa24319559f670931e99f1bf6e0d2a369999fca5f23d1’ \

–data-raw '{

"clientId": "docprime_001",

"clientSecret": "4239d931-7384-4a52-afac-31072487422b"

}’

Response -

{

"accessToken": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2Mjk0NDE3MTksImlhdCI6MTYyOTQ0MTExOSwianRpIjoiNzk1MDc0ZmQtZTg1Zi00OGI0LThhMTMtYzAxY2M4NGU5ODgzIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiI2NTI3Zjk4YS02N2JjLTRlZWUtYTgwYy0zMmFmZWIxYTQzZmUiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJkb2NwcmltZV8wMDEiLCJzZXNzaW9uX3N0YXRlIjoiOTY4MmI5NzktZDNhNi00M2Q4LWJkNWUtYTZkNTEyZjYyODM4IiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyJodHRwOi8vbG9jYWxob3N0OjkwMDciXSwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIm9mZmxpbmVfYWNjZXNzIiwiT0l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HM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6Imh0dHBzOi8vZGV2Lm5kaG0uZ292LmluL2F1dGgvcmVhbG1zL2NlbnRyYWwtcmVnaXN0cnkiLCJzdWIiOiI2NTI3Zjk4YS02N2JjLTRlZWUtYTgwYy0zMmFmZWIxYTQzZmUiLCJ0eXAiOiJSZWZyZXNoIiwiYXpwIjoiZG9jcHJpbWVfMDAxIiwic2Vzc2lvbl9zdGF0ZSI6Ijk2ODJiOTc5LWQzYTYtNDNkOC1iZDVlLWE2ZDUxMmY2MjgzOCIsInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUifQ.1Og8Zhbxfkyr-Ykp9l78D8hiA9q7q3StPKm6hKgi__Y",

"tokenType": "bearer"

}

curl --location --request POST ‘https://healthidsbx.ndhm.gov.in/api/v1/search/existsByHealthId’ \

–header ‘accept: /’ \

–header ‘Accept-Language: en-US’ \

–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2Mjk0NDE3MTksImlhdCI6MTYyOTQ0MTExOSwianRpIjoiNzk1MDc0ZmQtZTg1Zi00OGI0LThhMTMtYzAxY2M4NGU5ODgzIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiI2NTI3Zjk4YS02N2JjLTRlZWUtYTgwYy0zMmFmZWIxYTQzZmUiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJkb2NwcmltZV8wMDEiLCJzZXNzaW9uX3N0YXRlIjoiOTY4MmI5NzktZDNhNi00M2Q4LWJkNWUtYTZkNTEyZjYyODM4IiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyJodHRwOi8vbG9jYWxob3N0OjkwMDciXSwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIm9mZmxpbmVfYWNjZXNzIiwiT0lEQyIsImhlYWx0aF9sb2NrZXIiLCJoaXAiXX0sInJlc291cmNlX2FjY2VzcyI6eyJkb2NwcmltZV8wMDEiOnsicm9sZXMiOlsidW1hX3Byb3RlY3Rpb24iXX0sImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRIb3N0IjoiMTAuMjMzLjY4Ljk1IiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJjbGllbnRJZCI6ImRvY3ByaW1lXzAwMSIsInByZWZlcnJlZF91c2VybmFtZSI6InNlcnZpY2UtYWNjb3VudC1kb2NwcmltZV8wMDEiLCJjbGllbnRBZGRyZXNzIjoiMTAuMjMzLjY4Ljk1In0.GHZfzJxhVgtuvp32fgcpkM1nOsFfCM5eMJAoK5QUGr7e23ExCD_W396vl4AkY46G4yelijuBC7zrik7GTPMRqMK7AASww6Dy-1M0YBqPJ0tn6im7Btzj7eMuG_9c7uXMec6E8A5pDOxet_LZTYCYxC4lyptd6sUs-Vd60KzY1QR755blvesHWTQl0G9GplnkR5nIvYYTASytYOv4700IutShQSo4A4Y8sMdrV_89yMNfZ0TIt0oiPPDKBiGl5Aj8yO96jQ_FkfX_VLW-DYHWoxKmKB7ioBymVuxpEfZlOp6Bq5CbiKcAERN1TDL7i3uTGRsVWalqT80w7pTM5EbxUQ’ \

–header ‘X-HIP-ID: DOCPRIME_UAT_LOCKER’ \

–header ‘Content-Type: application/json’ \

–header ‘Cookie: TS01c078b5=01115a1c90eb287bd3943de90fb7cf898638a4219a5e202ebdaa91fd32157288fcf94331b4de262c05cb593a1983a68f39596c1b60’ \

–data-raw ‘{ “healthId”: “eight.test@sbx”}’

Response -
{

"timestamp": "2021-08-20T06:32:25.889+0000",

"status": 401,

"error": "Unauthorized",

"message": "Unauthorized",

"path": "/api/v1/search/existsByHealthId"

}

Regards,
Rachit

Hey @rachit,

The issue is at another end and is under loop, we will let you know once it is resolved.

Thank You

@Shubhanshu_Shukla Any updates on this?

Hey @rachit,

It is resolved.
Please check now and let us know if the issue still exists.

Thank You

Hi @Shubhanshu_Shukla ,

Now I am not able to hit subscribe request for Health locker, PFB the request curl along with responses -

curl --location --request POST ‘https://dev.ndhm.gov.in/gateway/v0.5/sessions
–header ‘accept: application/json’
–header ‘Content-Type: application/json’
–header ‘Cookie: TS01960242=01115a1c9070c1ee437b31f9a0479baf61eb3185acb658ea7f76cbf7904519ae9bf49ea833d3fcfdf4d6936564bc89b8dcfc54493f’
–data-raw ‘{
“clientId”: “docprime_001”,
“clientSecret”: “4239d931-7384-4a52-afac-31072487422b”
}’

Response -
{

"accessToken": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2Mjk4OTI0ODksImlhdCI6MTYyOTg5MTg4OSwianRpIjoiM2MzMmYwNTUtYzY4MC00NDg1LTlkZTQtOTFjNmY4OWUyYjgzIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiI2NTI3Zjk4YS02N2JjLTRlZWUtYTgwYy0zMmFmZWIxYTQzZmUiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJkb2NwcmltZV8wMDEiLCJzZXNzaW9uX3N0YXRlIjoiNmJlMTA3NDEtYTZhMi00YzM1LTg4OWEtOWE0ZGM1ZjAxYTIxIiwiYWNyIjoiMSIsImFsbG93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1NmFlNWYifQ.eyJleHAiOjE2Mjk4OTM2ODksImlhdCI6MTYyOTg5MTg4OSwianRpIjoiOWY1ODM1YzQtYjZkZC00OGQ0LWJiMDItMmZmZmQxODNjOTViIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6Imh0dHBzOi8vZGV2Lm5kaG0uZ292LmluL2F1dGgvcmVhbG1zL2NlbnRyYWwtcmVnaXN0cnkiLCJzdWIiOiI2NTI3Zjk4YS02N2JjLTRlZWUtYTgwYy0zMmFmZWIxYTQzZmUiLCJ0eXAiOiJSZWZyZXNoIiwiYXpwIjoiZG9jcHJpbWVfMDAxIiwic2Vzc2lvbl9zdGF0ZSI6IjZiZTEwNzQxLWE2YTItNGMzNS04ODlhLTlhNGRjNWYwMWEyMSIsInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUifQ.4hfykekGlFDKVMrnCcuFlPhSnqga1U5omvNDw7-UmLM",

"tokenType": "bearer"

}

curl --location --request POST ‘https://dev.ndhm.gov.in/gateway/v0.5/subscription-requests/cm/init
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2Mjk4OTI0ODksImlhdCI6MTYyOTg5MTg4OSwianRpIjoiM2MzMmYwNTUtYzY4MC00NDg1LTlkZTQtOTFjNmY4OWUyYjgzIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiI2NTI3Zjk4YS02N2JjLTRlZWUtYTgwYy0zMmFmZWIxYTQzZmUiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJkb2NwcmltZV8wMDE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Type: application/json’
–header ‘Cookie: TS01960242=01115a1c9070c1ee437b31f9a0479baf61eb3185acb658ea7f76cbf7904519ae9bf49ea833d3fcfdf4d6936564bc89b8dcfc54493f’
–data-raw ‘{
“requestId”: “92cc285e-ea9d-4eda-81cc-c6cf874cb172”,
“timestamp”: “2021-08-25T11:45:28.890000”,
“subscription”: {
“purpose”: {
“text”: “Care Management”,
“code”: “CAREMGT”,
“refUri”: “uri”
},
“patient”: {
“id”: “racsuattest@sbx”
},
“hiu”: {
“id”: “DOCPRIME_UAT_LOCKER”
},
“categories”: [
“LINK”,
“DATA”
],
“period”: {
“from”: “2005-02-12T09:16:34.596Z”,
“to”: “2035-02-12T09:16:34.596Z”
}
}
}’

Response -

Access Denied

Hey @rachit,

It is resolved, Please check now and let us know if still exists.

Thank You