Hi there
As the topic says, my rules are not firing when the authorization code grant type is running. I have a web application that my team is writing and we are doing testing. We have configured it to use authorization code grant type. My rules will insert custom claims into the JWT token. I’m not seeing ANY of the claims appearing.
I have 2 rules. One of my rule is this:
function (user, context, callback) {
user.email = user.email || {};
context.accessToken[configuration.NAMESPACE + “/email”] = user.email;
return callback(null, user, context);
}
Simple and sweet. “configuration.NAMESPACE” has a value of “http://abc.com”
The JWT returned does not contain this claim at all. Help?