Get Request Type PHR ID

I have already registered at sandbox dev forum, where I got cliend id, but when I’m trying calling: “cm/v1/apps/auth-init” with requester type PHR and client id provided from https://sandbox.abdm.gov.in/applications/Dashboard/user_dashboard

I’m getting Access Denied

@IntegrationSupport please resolve my query

Can you check and confirm if PHR role has been assigned to your client-Id ? You may check my taking the auth token and input in jwt.io. Alternatively, please share your assigned client-id.

Yes, there is not PHR role

How can I request for PHR role
@SARCH1 @IntegrationSupport

Hi @nakul.gupta please share your client id or kindly confirm if it is MEDCORDS_383474.

Thanks

Yes @Ramandeep1

Client Id is MEDCORDS_383474

Hi @nakul.gupta I have provided you the role, kindly check.

Thanks

Yes @Ramandeep1
Thank you
Working

@Ramandeep1 @IntegrationSupport please help with this.

I can see PHR role in token payload, but api is failing.

API: {{PhrBaseUrl}}/v1/apps/login/mobileEmail/auth-init
Response Satus: 401
Response: {
“error”: {
“code”: 1401,
“message”: “Token verification failed”
}
Token:
eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NzM2MDkyNjEsImlhdCI6MTY3MzYwODY2MSwianRpIjoiNzVkMjJhYTUtNmFjOS00ZDNjLWE5YWQtZDkyZGQ3OGY4NjUxIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiIxYzNkNjQ4My0wYTk0LTQ5ZDctOTU2YS1iYzJmYjkyNzA0NTAiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJNRURDT1JEU18zODM0NzQiLCJzZXNzaW9uX3N0YXRlIjoiNTcxZjZlZTMtNDBmNC00ZTkxLWI2M2QtMjE2OWE5MDMzYTA4IiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyJodHRwOi8vbG9jYWxob3N0OjkwMDciXSwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbImhpdSIsIm9mZmxpbmVfYWNjZXNzIiwiaGVhbHRoSWQiLCJwaHIiLCJoaXAiXX0sInJlc291cmNlX2FjY2VzcyI6eyJNRURDT1JEU18zODM0NzQiOnsicm9sZXMiOlsidW1hX3Byb3RlY3Rpb24iXX0sImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRJZCI6Ik1FRENPUkRTXzM4MzQ3NCIsImNsaWVudEhvc3QiOiIxMC4yMzMuNjkuMjIiLCJlbWFpbF92ZXJpZmllZCI6ZmFsc2UsInByZWZlcnJlZF91c2VybmFtZSI6InNlcnZpY2UtYWNjb3VudC1tZWRjb3Jkc18zODM0NzQiLCJjbGllbnRBZGRyZXNzIjoiMTAuMjMzLjY5LjIyIn0.W6e14LrFrFQjFp6IoRo3jmAyvTlEsyKo-A5aJU768xBkDwCr3ywsIDvkC2mXwTHgk8jion8533hPokNCBP3pCxVDDo7WPA4Cc5yM-DmEmLA2VVt8pgEVjFdPd16wWjpPwVDFMSRToYYzBGgLWE2Wu424TYc7UrPst59tQX3GiHnQfJRxbhPuL3SuzHawvHB6ytY-9oolsV90ykFlN1pzo-EjLY6OvlJDvPyA9Vnz4mLULT4fG0VwYXU9V87ennkATgyg0rU9OuwRRFCdinXQOKnGUVMgUlXCL5tJFt-DHX72OrhLWXlBHtMAStk3rOy-feHwerTjuasOzGrtIFdjMA

}

@Ramandeep1 @IntegrationSupport any update on this?


Please refer this link and let us know if it helps. API list for Login via mobile number /email is as below:
“/v1/apps/login/mobileEmail/auth-init
/v1/apps/login/mobileEmail/pre-Verify
/v1/apps/login/mobileEmail/auth-confirm
/v1/apps/resend/login/otp”

@IntegrationSupport

Getting error
For api: “/v1/apps/login/mobileEmail/auth-init

{
“error”: {
“code”: 1510,
“message”: “Invalid HIP or HIU or PHR id: MEDCORDS_383474”
}
}

Request params: {
“value”: “XdeCcICmhdFswO7FiGIP1FguyuCVuMI2RRn6W1e0hBm9k4MVW2+HfvgKMm0B7znBvsAY+ODw8SHcq4Ktk9OfIh1usUbKqDTd9+Zafeyk88FsZRlY3CyGkrzYDh17tAZLj44u024se+XAt4ueK4yvhbZ4oV3fgfu6ZokGKAiUto5kwpkKkor/0RrAFUFLgWgmz7Du8oNWruU/gUdNQKhCEP80/7y0sNtrOu+vE5gVORFGHERsSG+cq5JOMiCQrNKJVX1F32Zf23kkCnICHQvMZTUKmHuNBppemcrnzRWtpldij96KJyeKRniV3xnKbFuIk660+J78aKdJDBfU2XGhtA==”,
“purpose”: “CM_ACCESS”,
“authMode”: “MOBILE_OTP”,
“requester”: {
“type”: “PHR”,
“id”: “MEDCORDS_383474”
}
}

Token: eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NzM5NTIyMTYsImlhdCI6MTY3Mzk1MTYxNiwianRpIjoiZDU5YzFkOWUtYTYzMS00MTVlLWEwNGUtMWUwNmM3YzEyN2Q1IiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiIxYzNkNjQ4My0wYTk0LTQ5ZDctOTU2YS1iYzJmYjkyNzA0NTAiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJNRURDT1JEU18zODM0NzQiLCJzZXNzaW9uX3N0YXRlIjoiMjdkMDlhZGEtOTg2ZC00Mzg3LTk2MTQtMjc0NjcwMzQ5NzdlIiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyJodHRwOi8vbG9jYWxob3N0OjkwMDciXSwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbImhpdSIsIm9mZmxpbmVfYWNjZXNzIiwiaGVhbHRoSWQiLCJwaHIiLCJoaXAiXX0sInJlc291cmNlX2FjY2VzcyI6eyJNRURDT1JEU18zODM0NzQiOnsicm9sZXMiOlsidW1hX3Byb3RlY3Rpb24iXX0sImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRJZCI6Ik1FRENPUkRTXzM4MzQ3NCIsImNsaWVudEhvc3QiOiIxMC4yMzMuNjcuMjMxIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJzZXJ2aWNlLWFjY291bnQtbWVkY29yZHNfMzgzNDc0IiwiY2xpZW50QWRkcmVzcyI6IjEwLjIzMy42Ny4yMzEifQ.kS1NKLp5AAfOseGxKS0tY3lPUYFwPlgOo7DaRvSaxFqC3c_CuQpg90CTMzmG703GwIdtecYJbKNOJ_IZ6sCJycMT_Pf-Vgm7GoJ5VfYLQt9ARErWF6ZINBz0d7p4qM5h8eINg-y9XkrPO33zA7zr9S-1rkFa-uLIi6da3OYmDct3rOF6damWZ33NjVRSN1QNCsefmBgjmeRQIwsvqdyh9nmqGmdInj6B73evfXJHvvPpKM8J-GpI2iw96tpJDOy80a8ansGXtFI1tUbUjkqpO6f2NqLSChF6290KWDd-muN57fhZttpMqX0mlL8P4I-xvCmeVQ3Sck9eXE8OmLZHyw

Hi @IntegrationSupport

Any update

@IntegrationSupport any update.

May follow steps in Guidance for next step

@Ramandeep1 @IntegrationSupport My client Id is SBX_000355, there is no PHR role available for this and we are getting Access denied error. Can you please enable?

Hi @Rahmathulla please contact your integrator coordinator or @IntegrationSupport for the role assignment.

Thanks

@Rahmathulla We have pushed the concern to the technical team.
@Ramandeep1 pls help provide PHR credentials, jira - SDFI-3205

Hi @Rahmathulla PHR role has been provided to you.

Thanks