How could I enable Sandbox for Care Identity Service (CIS2)?

Hi
I am developing a feature to login with NHS care Identity.
I tried to develop indirect request.
for example,
https://am.nhsdev.auth-ptl.cis2.spineservices.nhs.uk/openam/oauth2/realms/root/realms/oidc/authorize?response_type=code&scope=openid%20profile&client_id=&state=af0ifjsldkj&redirect_uri=<redirect_uri>

but I got the following error after go the link

invalid_client Client authentication failed

I believe it is because my sandbox app does not have access right to Care Identity Service (CIS2).

I already added Identity Service (Sandbox) in Connected APIs. However, it seems it does not enable Sandbox for Care Identity Service (CIS2).

ref: indirect request

Have you onboarded with the CIS2 Authentication service?

@wchoi - did you get this sorted?

noticed that you mentioned that you connected the Identity Service (Sandbox) , Do you need to use the Developer environment?
Or did you need to do something else ?

I’m having the same issue, I simply created an account at developer portal and created an application and then tried to consume that but facing Client not found error. You can see the image. @kiran.cheema please take a look if you can help with this.

@Assad_Rehman I am from APIM team, Can you please let me know which user you are using? If you want we can connect, Please share your availability for tomorrow or wednesday?

Hi @vikas.nautiyal1 ,

Apologies for the late response, as I was busy with Eid celebrations.

I am trying to use the User-restricted NHS CIS2 combined authentication and authorisation PHP tutorial, and I am being redirected to:
https://identity.ptl.api.platform.nhs.uk/realms/Cis2-mock-sandbox/login-actions/authenticate?execution=######&client_id=test-client-cis2&tab_id=######

However, I am unsure which user/email credentials I should use. Should I use the credentials from my developer account, or will test data be provided?

I am available today if you’d like to connect. Please let me know what works for you.

Best regards,
Asad Rehman

Hi Assad,

I’m from the API Platform team. Looks like you are trying to authenticate using our CIS2 mock auth service. There’s a few things to consider here.

Firstly, I’m assuming you have followed: https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation/user-restricted-restful-apis-nhs-cis2-combined-authentication-and-authorisation#top

Secondly, could I get your App ID to ensure you are connected to the correct APIs and have set the app up correctly.

And lastly, we do have a number of test users we use for mock auth which you can use or we can create a new test user for you. I have privately messaged you a suitable test user you can use. Ideally however, if you are going to be using our sandbox mock auth service frequently we should create a new one for you.

Hi @fayez.a1
Thank you for reaching out. I have texted you in private. Looking forward for your response.

@fayez.a1
The test user you provided is working for me but I want to find the endpoints of other APIs as well.

@vikas.nautiyal1
Hi Vikas,

Could we rearrange a call for today or tomorrow?

Hi Assad, I’ll arrange a call with you on Monday. I’ll send you an invite. Feel free to propose a new time if that doesn’t work for you.
Thanks

Hi @fayez.a1
Thank you for responding, I can now access but it seems the API I am trying to access are unavailable. Please see the screenshot below:


I want to consume Prescriptions for Patients FHIR API which endpoints is “https://sandbox.api.service.nhs.uk/prescriptions-for-patients”.

Could you give me someother endpoints of APIs for prescription handling or help to configure this.

Hi fayez,

I didn’t hear back from you yet. Please arrange a call at 2PM on Monday.

@fayez.a1
I am trying to consume https://sandbox.api.service.nhs.uk/prescriptions-for-patients now but facing 404 Not Found. Can you check the logs now?