In a managed package performing calls to external API what is best way to support multi-tenancy?
Let's say I have a hosted multi-tenant API that accepts incoming request such as api.hosted.com/tenant-id/some-resource (or you can imagine that tenant-id is coming within request params). I also have a managed package deployed to the different Salesforce organizations calling this API in particular situations.
Organization Id - Tenant Id is a one-to-one relationship - what is best way to estabilish it? How can I make so that particular installation of package know what tenant it relates to?
Option I am using know is just letting know every customer particular secret that he inters via package configuration screen that allows me to establish association. However I want to get rid of manual steps.
Ideal way would be to parameterize managed package installation link with such secret - but as far as I know there is no such possibility