I went through the docs as well as checked the available methods on the
auth0 management object available in rules - there doesn’t seem to be a way to access the connection metadata in the rule.
What I’m trying to do:
We have multiple Salesforce Community connections (and our customers can create their own). In the JWT we need a claim stating which community this user logged in to (as the same Salesforce user can belong to multiple communities).
The simplest solution I’m trying to implement now is to add the community ID to the custom connection’s metadata, and in the rules we will fetch it from the connection metadat put it in the JWT claims.
Is there a way to access connection metadata in rules?