Name spaced claims being ignored in OIDC enterprise connections?


I am using Auth0 as an IdP and am having trouble with name spaced values in the rules.

I set up in my OIDC enterprise connection, enabled it on a client, and added the following rule to it:

function Rule(user, context, callback) {

  const namespace = '';

  context.idToken[namespace + 'partner_id'] ='foo';
  context.idToken.[namespace + 'partner_user_id']= 'bar';
  callback(null, user, context);

The client with the namespaced values are not

I tested using the Auth0 testing tool, both the rule and connection return expected values on the Auth0 web console.

However, when I login to localhost the returned claims in the ID token miss values injected by the rule stated above.

I have tested with claims that are not namespaces and they work, i.e context.idToken.given_name ='foo'; is all good.

Are namespaced claims ignored in OIDC enterprise connection rules?

Thank you for your assistance!