I'm having trouble getting a custom claim attribute to come through in the id_token. I've got the scope set to OpenId and profile (both in salesforce, AWS Cognito and the URL). I've added the custom attribute to the Connected app (tenantId) and even tried namespacing it (recommendations from auth0.com). Tried using the ConnectedAppPlugin class, and overiding the customAttribute method.
I enabled Configure Id token in the connected app config page and made sure custom claims was ticked (along with standard claims).
All of the above, and I keep getting back an id_token without the additional claim information. Have I missed anything? I know that i can make a call to the userinfo endpoint, but i'm trying to avoid that.
Some one did manage to get it working: Openid Connect - Add custom claim
But left no explanation. Have i missed anything?