> For the complete documentation index, see [llms.txt](https://docs.tryterra.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tryterra.co/faq/help-topics/connecting/setting-up-provider-credentials-bring-your-own-keys/provider-callback-url-registration.md).

# Why is my Huawei redirect\_uri not registered?

Provider OAuth errors like `redirect_uri not registered` or `Unauthorized` after the user authorises mean the **Terra callback URL isn't registered, or doesn't match**, in the provider's developer portal.

{% stepper %}
{% step %}
Register Terra's provider-specific OAuth callback URL in the provider portal:

* **Huawei:** under your Huawei OAuth 2.0 client credentials, not just API-key restrictions.
* **WHOOP:** the `access.tryterra.co` WHOOP OAuth v3 callback.
  {% endstep %}

{% step %}
Set the **same URL** under [Connections settings](https://github.com/tryterra/api-faqs/blob/main/dashboard/connections/README.md) in the Terra dashboard so both match exactly.
{% endstep %}
{% endstepper %}

The flow then completes.
