Open rsoesemann opened 4 months ago
Probably the appropriate solution:
Regarding https://developer.salesforce.com/docs/metadata-coverage
For Unlocked Package: everything except the Connected App can be packaged. It's not a problem Connected App can be created from Scratch by the Client Admin User - for the Auth Provider we only need the Client Key / Client Secret
For 2GP Manage Package: everything except Auth Provider can be packaged. Salesforce allows creating it using Connect API
it is necessary to discover if there is an intelligent way to create it for the 2GP managed package - maybe in a post-install script?
Connected App needs to be created per user org, because of callback URL of Auth Provider that needs to be fulfilled in Connected App
In Named Credential there is a part of it connected to Namespaces - its also worth checking out
Not sure if that even works but the current way we get the Session Id are hacks that will never pass Security review. We need to research and play with alternatives: