'Invalid parameter: redirect_uri' when trying to use the intergration mock cis2 login

We have the regular intergration cis2 working for our application and I’m trying to setup the mock cis2 intergration for our tests.

I’m running into an issue while trying to use the ‘https://identity.ptl.api.platform.nhs.uk/realms/Cis2-mock-int/protocol/openid-connect/auth‘ endpoint (with the url parameters added). Invalid Parameter: redirect_uri

I have followed the steps in the documentation https://digital.nhs.uk/developer/guides-and-documentation/security-and-authorisation/testing-with-our-mock-authorisation-service-using-nhs-cis2---separate-authentication but this issue is still happening. I have tried our desired callback url and the dummy example one provided (both url encoded and regular) but I still get the same issue.

Any assistance as to where I might be going wrong with this would be greatly appreciated.

Thanks

Hi, we are aware of an issue with the default configuration and are investigating. You can also request a “custom” configuration by contacting the API-M via this link.

Thank you, I will do that

Hi George, can you use https://google.com as the redirect URI.

Hi John, using https://google.com works outside the application, however inside the application it doesn’t as the redirect uri is required to go back to an endpoint on our application to get the authorization code for further use in the flow.

1 Like

Hi John. I am still getting the “redirect_uri” error mentioned above.