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.