Hi all,
I created a test application, called testM2M.
I also set some metadata in the advanced settings section of this application.
I tried this rule but it doens’t change anything in my jwt token:
function (user, context, callback) {
var namespace = "https://leanangle.io/claims/";
user.user_metadata = user.user_metadata || {};
context.idToken[namespace + "user_metadata"] = user.user_metadata;
callback(null, user, context);
}
How can I add this information in my jwt token I get after calling the /oauth/token API? Is this possibile? If this is not possibile, can I use the clientID contained in the token to retrieve metadata?
Can you help me here?
Thanks,
Piero