I create a rule to include unique clams in access tokens. However, I am unable to see any custom clams in the access token. The same code runs flawlessly in the professional version, but the access token does not update for returning users in the free version.
Is it possible to update personalised clams for free trail?
You should be able to set custom claims to your access tokens with Rules using a free trail subscription.
After looking closely at your screenshot, it looks like the code is missing a custom namespace when setting a custom claim to the your access tokens. See below for an example code snippet to append custom claims to an Access or ID token.
function(user, context, callback) {
// add custom claims to Access Token and ID Token
context.accessToken['http://foo/bar'] = 'value';
context.idToken['http://fiz/baz'] = 'some other value';
// change scope
context.accessToken.scope = ['array', 'of', 'strings'];
callback(null, user, context);
}
Could you please send me a direct message of your free and paid tenant names so that I can investigate if there’s anything causing a difference in behavior with your Rule scripts?
In the meantime, could you please try the example script I shared above with both of your tenants and check if the tokens are appending the custom claims?