CMs Hid Auth Init Api not working

HI @IntegrationSupport
Can you help me with API: cm/v1/apps/login/hid/auth-init
DocRef: https://sandbox.abdm.gov.in/swagger/ndhm-phr-app2.yaml

Request Body:

{
“healthIdNumber”: “22-2626-4321-7532”,
“purpose”: “CM_ACCESS”,
“authMode”: “MOBILE_OTP”,
“requester”: {
“type”: “PHR”,
“id”: “SBX_GOQII_PHR”
}
}

I m not understanding how get requesterid: SBX_GOQII_PHR

But i tried with https://dev.abdm.gov.in/devservice/v1/bridges/services is It correct?

when i sending reqesut it is showing me Access Denied
In header sending Authorization token which i generate with sessionAPI
Attaching screenshot


@javedaliit You might not have access to PHR role.
You may input production access token in jwt.io and share the output with us, this will confirm the list of roles assigned

HI @IntegrationSupport

can you please check:

{
“exp”: 1690887022,
“iat”: 1690865422,
“jti”: “7ced1e9b-04f2-48c8-8aa6-e0001e2f88fa”,
“iss”: “https://dev.ndhm.gov.in/auth/realms/central-registry”,
“aud”: “account”,
“sub”: “3a60f333-4edb-4e2b-a198-53dda5548844”,
“typ”: “Bearer”,
“azp”: “SBX_003010”,
“session_state”: “feba12cf-20a7-48bd-a3c4-4aaf4acd69b8”,
“acr”: “1”,
“allowed-origins”: [
http://localhost:9007
],
“realm_access”: {
“roles”: [
“hiu”,
“offline_access”,
“healthId”,
“phr”,
“OIDC”,
“health_locker”,
“hip”
]
},
“resource_access”: {
“SBX_003010”: {
“roles”: [
“uma_protection”
]
},
“account”: {
“roles”: [
“manage-account”,
“manage-account-links”,
“view-profile”
]
}
},
“scope”: “openid email profile”,
“clientHost”: “10.233.69.8”,
“email_verified”: false,
“clientId”: “SBX_003010”,
“preferred_username”: “service-account-sbx_003010”,
“clientAddress”: “10.233.69.8”
}

@IntegrationSupport Any one looking on it? can you help to fix that

hi @IntegrationSupport Can you tell me please this issue is solveable or not?

HI @IntegrationSupport , I know you are busy in to much task. Can you please help on it solve that my issue.