Extensions fail with "Client attempting to use unregistered redirect URI" error

Problem statement

We received the below error when trying to use some extensions installed in a tenant before migrating from Node 8 to Node 12.

invalid_request: Client attempting to use unregistered redirect URI: [https://TENANT.**us8**.webtask.io/CLIENT](https://tenant.%2A%2Aus8%2A%2A.webtask.io/CLIENT)

Cause

Most extensions use the PUBLIC_WT_URL hidden secret for authorization. This secret depends on the runtime version and does not update automatically.

If you have not updated the PUBLIC_WT_URL hidden secret, you will receive the error.

Solution

To update the PUBLIC_WT_URL hidden secret, save the extension’s settings (no changes are necessary).

  1. After switching the runtime to Node 12, open the extension’s settings in the extensions dashboard (gear icon)
  2. Click Save.

The extensions gallery will update the PUBLIC_WT_URL secret based on the selected runtime.

The detailed steps for republishing the Authorization Extension rule, configuring Delegated Administration URLs and SSO Dashboard URLs, and updating other Extensions are available in the NodeJs migration guide.

2 Likes