# Regading OAuth: Sorry, there is a problem with the service

**URL:** <http://forum.companieshouse.gov.uk/t/regading-oauth-sorry-there-is-a-problem-with-the-service/12700>\
**Category:** API Question\
**Created:** [March 2, 2026, 7:57am UTC](http://forum.companieshouse.gov.uk/t/regading-oauth-sorry-there-is-a-problem-with-the-service/12700 "2026-03-02T07:57:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![angel](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/a/49beb7/32.png) [@angel](http://forum.companieshouse.gov.uk/u/angel)\
**Post date:** [March 2, 2026, 7:57am UTC](http://forum.companieshouse.gov.uk/t/regading-oauth-sorry-there-is-a-problem-with-the-service/12700/1 "2026-03-02T07:57:10Z")

</div>

Subject: Please route to API/Identity OAuth team: CH OAuth authorisation failing with generic service error

Hello Companies House team,

Please could you route this to the **API / Identity OAuth support team**.

We are integrating Companies House OAuth in our software and consistently hit a failure at the authorisation step.

Issue details:

- Environment: sandbox

- OAuth endpoint used: [https://identity.company-information.service.gov.uk/oauth2/authorise](https://identity.company-information.service.gov.uk/oauth2/authorise)

- Client ID: 53ca8ed6-d875-44f1-a59c-25df46c83647

- Redirect URI: [https://groupbooks.ngrok.io/compliance/companies-house/oauth/callback](https://groupbooks.ngrok.io/compliance/companies-house/oauth/callback)

- Response type: code

- Scope: [https://identity.company-information.service.gov.uk/user/profile.read](https://identity.company-information.service.gov.uk/user/profile.read)

- State: present (base64url JSON)

Observed behaviour:

- User is redirected to identity service successfully.

- Then lands on generic CH error page:  
[Sorry, there is a problem with the service](https://identity.company-information.service.gov.uk/there-is-a-problem)

- No OAuth callback error is returned to our app (error/error\_description not received).

Please can you confirm:

1. Whether this client ID is fully enabled/active for OAuth in sandbox.

2. Whether the redirect URI above is correctly registered for this client.

3. Whether the requested scope is valid for this client.

4. If backend logs show the exact rejection reason for the attempted authorise request.

We can provide exact timestamps and full request query for correlation.

---

<div class="post-metadata">

**Author:** ![nigel2](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/n/8491ac/32.png) [@nigel2](http://forum.companieshouse.gov.uk/u/nigel2)\
**Post date:** [March 24, 2026, 1:45pm UTC](http://forum.companieshouse.gov.uk/t/regading-oauth-sorry-there-is-a-problem-with-the-service/12700/2 "2026-03-24T13:45:31Z")

</div>

I’ve got the same issue. I had all of this working 9-12 months ago and I’ve come back to it, having had my applications removed. I’ve created new apps and with the same code, the authorise secures a redirect url, but that simply shows a Page Not Found error.

So, what’s changed? Can I provide my client and timestamp details to verify what the back-end issue is?

---

<div class="post-metadata">

**Author:** ![angel](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/a/49beb7/32.png) [@angel](http://forum.companieshouse.gov.uk/u/angel)\
**Post date:** [March 26, 2026, 10:27am UTC](http://forum.companieshouse.gov.uk/t/regading-oauth-sorry-there-is-a-problem-with-the-service/12700/3 "2026-03-26T10:27:05Z")

</div>

in our case it turned out not to be a mysterious backend outage.

What changed for us was the identity endpoint and callback handling.

We had rebuilt our app using sandbox, but were still sending users to the live authorise host:

[https://identity.company-information.service.gov.uk/oauth2/authorise](https://identity.company-information.service.gov.uk/oauth2/authorise)

For sandbox, we had to switch to:

[https://identity-sandbox.company-information.service.gov.uk/oauth2/authorise](https://identity-sandbox.company-information.service.gov.uk/oauth2/authorise)

And the token endpoint likewise had to be the sandbox one:

[https://identity-sandbox.company-information.service.gov.uk/oauth2/token](https://identity-sandbox.company-information.service.gov.uk/oauth2/token)

Our redirect URI also had to match exactly, character for character, with what was registered.

The other issue on our side was callback handling. After CH redirected back to us, our app was rejecting the callback because of CSRF/session assumptions on a cross-site OAuth return. We fixed that by allowing the GET callback through and validating with the OAuth state nonce instead.

So the practical checks I’d suggest are:

- Confirm you are using the sandbox identity host for both authorise and token if this is a sandbox app.

- Confirm the redirect URI is an exact match to the one registered.

- Confirm the requested scope is valid for the app.

- Log the full generated authorise URL and the raw callback query string.

- Check whether your own app is blocking the callback before token exchange.

In our case, once we corrected the sandbox endpoints and fixed callback validation, the flow started working again.

If you want to ask CH to check logs, I’d definitely send them your client ID, exact UTC timestamp, full authorise URL parameters excluding secrets, and the exact redirect URI used

---

<div class="post-metadata">

**Author:** ![sam.reid](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@sam.reid](http://forum.companieshouse.gov.uk/u/sam.reid)\
**Post date:** [April 1, 2026, 11:58am UTC](http://forum.companieshouse.gov.uk/t/regading-oauth-sorry-there-is-a-problem-with-the-service/12700/4 "2026-04-01T11:58:38Z")

</div>

How did you create a sandbox login?

---

<div class="post-metadata">

**Author:** ![angel](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/a/49beb7/32.png) [@angel](http://forum.companieshouse.gov.uk/u/angel)\
**Post date:** [April 1, 2026, 12:33pm UTC](http://forum.companieshouse.gov.uk/t/regading-oauth-sorry-there-is-a-problem-with-the-service/12700/5 "2026-04-01T12:33:19Z")

</div>

Companies House dev el oper hub..

---

<div class="post-metadata">

**Author:** ![sam.reid](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@sam.reid](http://forum.companieshouse.gov.uk/u/sam.reid)\
**Post date:** [April 7, 2026, 9:27am UTC](http://forum.companieshouse.gov.uk/t/regading-oauth-sorry-there-is-a-problem-with-the-service/12700/6 "2026-04-07T09:27:52Z")

</div>

Could you please be a little bit more specific?

---

<div class="post-metadata">

**Author:** ![angel](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/a/49beb7/32.png) [@angel](http://forum.companieshouse.gov.uk/u/angel)\
**Post date:** [April 7, 2026, 4:28pm UTC](http://forum.companieshouse.gov.uk/t/regading-oauth-sorry-there-is-a-problem-with-the-service/12700/7 "2026-04-07T16:28:32Z")

</div>

Just do this:

1. Go to the Companies House Dev Hub:

2. Sign in using a normal Companies House account (or create one if you don’t have it).

3. Create an application → you’ll get:

4. For **testing (sandbox)**:

5. If using OAuth:

---

<div class="post-metadata">

**Author:** ![sam.reid](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@sam.reid](http://forum.companieshouse.gov.uk/u/sam.reid)\
**Post date:** [April 8, 2026, 10:10am UTC](http://forum.companieshouse.gov.uk/t/regading-oauth-sorry-there-is-a-problem-with-the-service/12700/8 "2026-04-08T10:10:35Z")

</div>

When testing the Auth Flow, how do you then login when your redirected to Companies house though as the companies house dev hub login credentials don’t work.

---

<div class="post-metadata">

**Author:** ![angel](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/a/49beb7/32.png) [@angel](http://forum.companieshouse.gov.uk/u/angel)\
**Post date:** [April 8, 2026, 8:03pm UTC](http://forum.companieshouse.gov.uk/t/regading-oauth-sorry-there-is-a-problem-with-the-service/12700/9 "2026-04-08T20:03:11Z")

</div>

Sorry responding here is tedious… i keep getting stopped for using words… apologies, i would like to help you but have to edit every line because i cannot use some word or another…
