Int - oAuth redirect_uri_mismatch

I’ve set up a new INT application via the NHS Digital Onboarding website to test connectivity to e-Referral Service - Healthcare Worker ( Integration Testing ).

My application connects to https://am.nhsint.auth-ptl.cis2.spineservices.nhs.uk/openam/oauth2/… and fails with the following error:

  error: {

                    description: "The redirection URI provided does not match a pre-registered value.",

                    message: "redirect_uri_mismatch"

                }

I’ve contacted NHS England who have linked my ASID to the new application ID from the Digital Onboarding website.

I have also set up my API Key, Public Key URL and Callback URL for this new application.

Can you let me know if I’m missing anything?

Hi Andrew,

Have you followed the guidance at https://digital.nhs.uk/services/care-identity-service/applications-and-services/cis2-authentication/integrate/design-and-build/register-to-access-an-environment? You need to register your redirect URL with the CIS team.

Hi Tony,

Thanks for the quick response.

Can I just clarify, is this CIS team registration different to the england.nhserspartners@nhs.net registration? Is there a different contact I need to use?

Hi Andrew,

Yes, it’s a different team. If you follow the instructions on that page carefully, it should guide you through the process.

If you have any difficulties, do ask.