Hi @adnan_360
Error while importing Curl: Only the URL can be provided without an option preceding it.All other inputs must be specified via options.
This error message come while I’m importing postman.
Thanks
Surya
Hi @adnan_360
Error while importing Curl: Only the URL can be provided without an option preceding it.All other inputs must be specified via options.
This error message come while I’m importing postman.
Thanks
Surya
Hi @surya
Please use new auth token and paste in bearer and in body paste your phone no as well so please check you mistake and try again
Becoz i have test with your phone no
Thanks
Adnan
Hi @adnan_360
Please check this token in your header
eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NDkyMjIxNDUsImlhdCI6MTY0OTIyMTU0NSwianRpIjoiOGYyNTMxMjEtZDdjZS00MjQ2LWFiZTktOGVkZWQ4MTlmOGJjIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJlNGRlZGJiMC1iNDk4LTQ1MmMtYmIzMC0wMzJmZDI2NDA2N2MiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAxMTM0Iiwic2Vzc2lvbl9zdGF0ZSI6IjYzYzEzNzU5LWQyYzktNDY5Mi05MGIzLWJiYzNjZDdiMDhmMiIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhpcCJdfSwicmVzb3VyY2VfYWNjZXNzIjp7IlNCWF8wMDExMzQiOnsicm9sZXMiOlsidW1hX3Byb3RlY3Rpb24iXX0sImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRIb3N0IjoiMTAuMjMzLjY3LjE2NSIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwiY2xpZW50SWQiOiJTQlhfMDAxMTM0IiwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LXNieF8wMDExMzQiLCJjbGllbnRBZGRyZXNzIjoiMTAuMjMzLjY3LjE2NSJ9.EFBuGlXgqDyUrBDVktsBBLkBr9Pg8J_n5a1dRMiCBDn5RdtPeC-gZKelARKqMTqybEPylkQOcuze_yLQyuIyduvPwnacbmdo2Za3riD_J6uMyFKrU2L5J9RTlU4ynMaGiCCPosAVTfAgn_5453u8rt3lfKZvNv8ZXxcEq5d9YjO4Ra4wfigUzmcijpoP7cYxcjAfC6anggnIL7-f4Yefc8wEU1hMCCuplL8tg4PjRkFEu6guu7LD1Ug7xGHtmBtAsdjZT3Ma5sTwIw2g-p7_XDns22CMBpqmsw37-g1BYdNdo1dKAXG-T1tloIM-bCxkbIFN2yVobWqlvAiTvNsZtQ
Thanks
Surya
Hi @adnan_360
Yes sir how I’m using token, My tokens are say Unauthorized. Please help me as solving this issue.
Thanks
Surya
Hi @surya
Please use the update token and don’t use double quotes in the token and paste in the
Authorization in the postman and swagger UI
Thanks
Adnan
Hi @adnan_360
Myself using updated token and didn’t used in any double quotes in Token. Why am getting unauthorized response. If my client Id have response or not please let me know.
ClientID : SBX_001134
Thanks
Surya
Hi @surya
Please use this curl file in the postman
and import curl in the raw
curl --location --request POST ‘https://healthidsbx.abdm.gov.in/api/v2/registration/mobile/login/generateOtp’
–header ‘accept: /’
–header ‘Accept-Language: en-US’
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NDkzMTI2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WEUcPGq1CqPVo0msqy_fLrN5RKOBVhYjcp2i7SKibRdFKC1ebP5REjX7XBvpFBJuhkL6awaSwPArgJDBUrbU3fNiE3w14pvBaCb9ivRPzvjyTQE1Kr-ZfkZK_roF3RjzpLvAQzrPw1PcfBgUHlHif1f-F1MMlyFCCJaVfkYlwyxw2QbQu2cJ87My7BFpSUShiTfVqkqj3-tF3dyX4AQ2f0uePnqMeAB6Kr6tDAHEmlBI8PSx3_Fn_XSgE2orsLG9RuOOw3Ni59lXL4Y6YHyRs_b_t9JY2d4WedXrBV_BCbZ5R2w2rE0EyOf_1XrA’
–header ‘Content-Type: application/json’
–header ‘Cookie: TS01c078b5=01115a1c90459dcb9f18373ea62071ade795efabfe20ac61bae0c6e699097c16887db3c038b7fe149bd6442353238676f773bbebfc’
–data-raw ‘{
“mobile”: “8012981059”
}’
Thanks
Adnan
Hi @adnan_360
Error while importing Curl: Only the URL can be provided without an option preceding it.All other inputs must be specified via options.
I’m facing this error message.
Thanks
Surya
Hi @surya
Please use this body in the postman
{
“mobile”: “8012981059”
}
and use the body in the Authorization and paste token Bearer
Thanks
Adnan
Hi @adnan_360
Yes sir am using same body content in my Postman. But my token has says Unauthorized only, You Mentioned token worked correctly But my side generated token not works. What I do for getting Unauthorized Response. Please help me as for Solving Unauthorized response.
Thanks
Surya
Hi @surya
Please check your data in the body so please try again in the
Authorization Bearer and Token in the header use correct request
data …
Thanks
Adnan
Hi @adnan_360
I’m using correct data and header data. But it not comes. If any possible for Connecting Anydesk sir.
Thanks
Surya
Hi @surya
Your credentials does not access to your client id and you have no acess so
kindly contact to sandbox team to access because your credentials did not match to acess health-id
Thanks
Adnan
this is the token please check
eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NDkyMjIxNDUsImlhdCI6MTY0OTIyMTU0NSwianRpIjoiOGYy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vNv8ZXxcEq5d9YjO4Ra4wfigUzmcijpoP7cYxcjAfC6anggnIL7-f4Yefc8wEU1hMCCuplL8tg4PjRkFEu6guu7LD1Ug7xGHtmBtAsdjZT3Ma5sTwIw2g-p7_XDns22CMBpqmsw37-g1BYdNdo1dKAXG-T1tloIM-bCxkbIFN2yVobWqlvAiTvNsZtQ
and this the output of encrypt token
{
“exp”: 1649222145,
“iat”: 1649221545,
“jti”: “8f253121-d7ce-4246-abe9-8eded819f8bc”,
“iss”: “https://dev.ndhm.gov.in/auth/realms/central-registry”,
“aud”: “account”,
“sub”: “e4dedbb0-b498-452c-bb30-032fd264067c”,
“typ”: “Bearer”,
“azp”: “SBX_001134”,
“session_state”: “63c13759-d2c9-4692-90b3-bbc3cd7b08f2”,
“acr”: “1”,
“allowed-origins”: [
“http://localhost:9007”
],
“realm_access”: {
“roles”: [
“hiu”,
“offline_access”,
“hip”
]
},
“resource_access”: {
“SBX_001134”: {
“roles”: [
“uma_protection”
]
},
“account”: {
“roles”: [
“manage-account”,
“manage-account-links”,
“view-profile”
]
}
},
“scope”: “openid email profile”,
“clientHost”: “10.233.67.165”,
“email_verified”: false,
“clientId”: “SBX_001134”,
“preferred_username”: “service-account-sbx_001134”,
“clientAddress”: “10.233.67.165”
}
kindly allow to accesss the token to the client health-id
creation
Please look into this issue
Thanks
Adnan
Hi @adnan_360
Which encryption method are used in verifying OTP API
"otp": "sw1uD+gpv3fj6NHBNhtcII3GksVtkLT9bvcz0svYDyUt/x3jTtedXSYgw4b90GTwfLfs1eow056VsOw9HFS/wB8uH5Ysx+QzpL7PxmAY1WOHwOj04sPKN6Dw8XY8vcXovtvZc1dUB+TPAlGGPNu8iqMVPetukysjRxgbNdLLKMxn46rIRb8NieeyuDx1EHa90jJP9KwKGZdsLr08BysrmMJExzTO9FT93CzoNg50/nxzaQgmkBSbu9D8DxJm7XrLzWSUB05YCknHbokm4iXwyYBsrmfFDE/xCDfzYPhYyhtEmOi4J/GMp+lO+gAHQFQtxkIADhoSR8WXGcAbCUj7uTjFsBU/tc+RtvSotso4FXy8v+Ylzj28jbFTmmOWyAwYi9pThQjXnmRnq43dVdd5OXmxIII6SXs0JzoFvKwSk7VxhuLIRYzKqrkfcnWMrrmRgE8xZ6ZLft6O3IeiHb9WA8b/6/qO8Hdd17FKsSF6te59gSpoajS0FtQIgFn/c+NHzQYo5ZdsuRGM9v+bhHTInI=",
Thanks
Surya
Hi @surya
v1/registration/aadhar/verifyotp
In Abdm sandbox, you have to encrypt OTP in the parameter
first, you generate public in the auth certificate and paste it into the Dev glan
and encrypt the top value BASE64 copy it and paste the parameter
and use and update txn id
in it use body
Thanks
Adnan