Authorization Extension cannot support multiple application in same tenant?

I have a tenant with two applications in it.

One is called application-dev and the other is called application-prod.
I use the authorization extension.
In order to pass the custom scopes back to my apps, I wrote a custom rule:

function (user, context, callback) {
  var namespace = 'http://example.com/';
  context.idToken[namespace + 'roles'] = user.roles;
  callback(null, user, context);
}

What happened is that only the first application I created can retrieve the scope, but if I set the clientID in my app to the second application, then it retrieves nothing.

Does the extension only support one application at a time? Thanks.

Hey there!

Sorry for such huge delay in response! We’re doing our best in providing you with best developer support experience out there, but sometimes our bandwidth is not enough comparing to the number of incoming questions.

Wanted to reach out to know if you still require further assistance?