# Has anyone seen this error

**URL:** <https://community.auth0.com/t/has-anyone-seen-this-error/103651>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [March 29, 2023, 2:55pm UTC](https://community.auth0.com/t/has-anyone-seen-this-error/103651 "2023-03-29T14:55:37Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![soon.hongooi](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@soon.hongooi](https://community.auth0.com/u/soon.hongooi)\
**Post date:** [March 29, 2023, 2:55pm UTC](https://community.auth0.com/t/has-anyone-seen-this-error/103651/1 "2023-03-29T14:55:37Z")

</div>

The error is:

```auto
{
	"action_name": "add-permissions-to-id-token",
	"response": {
		"error": {
			"message": "{\"error\":\"temporarily_unavailable\",\"error_description\":\"Invalid response from extension discovery URL: 403: {\\\"code\\\":403,\\\"message\\\":\\\"rejecting request with JWT token signed with untrusted key\\\",\\\"req_id\\\":\\\"1680100502924.405611\\\"}\"}",
			"name": "temporarily_unavailable",
			"stack": "temporarily_unavailable: {\"error\":\"temporarily_unavailable\",\"error_description\":\"Invalid response from extension discovery URL: 403: {\\\"code\\\":403,\\\"message\\\":\\\"rejecting request with JWT token signed with untrusted key\\\",\\\"req_id\\\":\\\"1680100502924.405611\\\"}\"}\n at /data/_verquire/_node16/@auth0/rule-utilities/0.2.0/node_modules/rest-facade/src/Client.js:402:25\n at Request.callback (/data/_verquire/_node16/@auth0/rule-utilities/0.2.0/node_modules/superagent/lib/node/index.js:905:3)\n at /data/_verquire/_node16/@auth0/rule-utilities/0.2.0/node_modules/superagent/lib/node/index.js:1126:20\n at IncomingMessage.<anonymous> (/data/_verquire/_node16/@auth0/rule-utilities/0.2.0/node_modules/superagent/lib/node/parsers/json.js:22:7)\n at IncomingMessage.emit (node:events:539:35)\n at IncomingMessage.emit (node:domain:537:15)\n at endReadableNT (node:internal/streams/readable:1345:12)\n at processTicksAndRejections (node:internal/process/task_queues:83:21)"
		},
		"stats": {
			"total_request_duration_ms": 522,
			"total_runtime_execution_duration_ms": 518,
			"runtime_processing_duration_ms": 5,
			"action_duration_ms": 513,
			"boot_duration_ms": 5,
			"network_duration_ms": 4
		}
	},
	"error": {
		"id": "invalid_argument",
		"msg": "Invalid Argument"
	},
	"started_at": "2023-03-29T14:35:02.413128322Z",
	"ended_at": "2023-03-29T14:35:02.936367880Z"
}

```

---

<div class="post-metadata">

**Author:** ![karl3](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/karl3/32/44533_2.png) [@karl3](https://community.auth0.com/u/karl3)\
**Post date:** [March 29, 2023, 3:36pm UTC](https://community.auth0.com/t/has-anyone-seen-this-error/103651/3 "2023-03-29T15:36:34Z")

</div>

Hello, we are also experiencing this issue. Would be good to get some info on it as it is blocking us from moving forward.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [March 29, 2023, 3:59pm UTC](https://community.auth0.com/t/has-anyone-seen-this-error/103651/4 "2023-03-29T15:59:24Z")

</div>

Hi @soon.hongooi,

Thanks for reaching out to the Auth0 Community!

I understand that you have encountered the `"Invalid response from extension discovery URL: 403"` error message.

I am currently looking into this and will get back to you shortly with my findings.

In the meantime, could you please try removing the “add-permissions-to-id-token” action from your Post-Login Flow to see if the error goes away?

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![soon.hongooi](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@soon.hongooi](https://community.auth0.com/u/soon.hongooi)\
**Post date:** [March 29, 2023, 4:06pm UTC](https://community.auth0.com/t/has-anyone-seen-this-error/103651/5 "2023-03-29T16:06:18Z")

</div>

Hi Rueben, Yes it does go away if we remove the action. But we need the action to be there else our app wouldn’t work ☹ . Do you need to know my tenant’s information? We’re on UK-1.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [March 29, 2023, 5:01pm UTC](https://community.auth0.com/t/has-anyone-seen-this-error/103651/6 "2023-03-29T17:01:59Z")

</div>

Hi @soon.hongooi,

Thank you for your response.

After reviewing your Action script, I noticed you are adding user permissions to the ID Token.

Firstly, calling the Management API for every login transaction can become unscalable and hit the [rate limits](https://auth0.com/docs/troubleshoot/customer-support/operational-policies/rate-limit-policy/management-api-endpoint-rate-limits).

As an alternative, I recommend using Role-Based Access Control (RBAC). This way, you can enable the **Add permissions to Access Token** setting on your API settings and assign Roles to your users. Let me add that Roles have permissions assigned to them, so when users are assigned a Role, they inherit those permissions.

Then when decoding the access token, there will be a Permissions array claim with the user’s permissions.

Here are some helpful resources:

- [How can I add the permissions claim in my Access Token with Rules?](https://community.auth0.com/t/how-can-i-add-the-permissions-claim-in-my-access-token-with-rules/87156)
- [How do I assign Permissions to users?](https://community.auth0.com/t/how-do-i-assign-permissions-to-users/72278)

Please let me know how this goes or if you have any questions about the implementation.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![soon.hongooi](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@soon.hongooi](https://community.auth0.com/u/soon.hongooi)\
**Post date:** [March 29, 2023, 8:37pm UTC](https://community.auth0.com/t/has-anyone-seen-this-error/103651/7 "2023-03-29T20:37:13Z")

</div>

Hi @rueben.tiow we do have RBAC in place with roles/permissions. The reason we’re adding Permissions into the ID token is to facilitate RBAC on our Frontend React application. For e.g. showing/hiding button and protecting routes. We thought this is the best solution for our SPA as the Access Token is meant for authorization for our backend services. Please let me know if this isn’t the right solution and I’d like to hear your thoughts on this.  
We’re still getting the “Invalid response from extension discovery URL: 403” error. Any chance of this getting resolved? Thank you.

---

<div class="post-metadata">

**Author:** ![hellwaiver](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hellwaiver/32/45892_2.png) [@hellwaiver](https://community.auth0.com/u/hellwaiver)\
**Post date:** [March 30, 2023, 8:44am UTC](https://community.auth0.com/t/has-anyone-seen-this-error/103651/9 "2023-03-30T08:44:32Z")

</div>

@rueben.tiow There’s several open discussions about the UK-1 beta region and people receiving 403 errors for the management api, extensions and just about every other area of the application when using this specific region. All the posts mention that they haven’t made any changes. Please could somebody raise this with an engineer at Auth0? So far all the responses from the Auth0 team have been unhelpful at resolving anybodies problem.

---

<div class="post-metadata">

**Author:** ![nizar.boussarsar](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@nizar.boussarsar](https://community.auth0.com/u/nizar.boussarsar)\
**Post date:** [March 30, 2023, 10:01am UTC](https://community.auth0.com/t/has-anyone-seen-this-error/103651/10 "2023-03-30T10:01:06Z")

</div>

Hi @rueben.tiow,

I am working closely with @soon.hongooi on this. We acknowledge that we are using RBAC and enabling the Add permissions to Access Token setting. We are able to get the permissions in the access token. We need these permissions to drive certain behaviour of the Frontend (e.g. show/hide buttons and pages). We also acknowledge that [it is not recommended to decode the access token in the Frontend](https://community.auth0.com/t/can-i-read-the-access-token-from-my-frontend-app/75418), therefore we setup a custom action which uses the Management API to retrieve the permissions and set them in the ID Token. We acknowledge the rate limit of calling the Management API, we are aware of this issue, and we think that this is not related to the HTTP 403 as this not happen for any user at any time (as rate limit is not hit). Is there a way to get this sorted out? Thanks.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [April 7, 2023, 10:38pm UTC](https://community.auth0.com/t/has-anyone-seen-this-error/103651/11 "2023-04-07T22:38:42Z")

</div>

Hi @nizar.boussarsar,

Thank you for your responses and my apologies for the late reply.

I am going to raise and escalate this issue with our teams internally to get further assistance.

I will follow up on this thread once I have updates.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [April 17, 2023, 5:56pm UTC](https://community.auth0.com/t/has-anyone-seen-this-error/103651/12 "2023-04-17T17:56:41Z")

</div>

Hi @nizar.boussarsar,

Thank you for your patience.

After collaborating with my colleagues on this one, we concluded that the `403` error is happening because of your **add-permissions-to-id-token** action script as provided in your error log, more specifically, the `rejecting request with JWT token signed with untrusted key` error message.

After testing the script on my side, I could not reproduce the same errors and suspect that it may involve the values set in your script’s `event.secrets` for the **domain** , **clientId** , and **clientSecret**. Because of this, could you please make sure that these values are correct?

Adding on, I noticed that your tenant does not have a separate Machine-to-Machine application created that is linked to the Management API with the necessary scopes. As a good practice, we recommend creating a separate M2M app with only the necessary Management API scopes to limit the permissions of the access token in the event that a malicious actor gains access. This helps improve the security of our applications by granting only the permissions that we need.

Lastly, I recommend checking out our [How can I use the Management API in Actions?](https://community.auth0.com/t/how-can-i-use-the-management-api-in-actions/64947) FAQ for more instructions.

Please let me know how this goes for you.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 1, 2023, 5:57pm UTC](https://community.auth0.com/t/has-anyone-seen-this-error/103651/13 "2023-05-01T17:57:23Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
