CumulusCI
CumulusCI copied to clipboard
`cci org connect` should output the name of the connected app it is using, especially if it is non-default
One could fail to connect to an org because the connected app is a mismatch. Salesforce itself does not give a good error message. If we at least printed out the connected app info before we tried to connect, it might be a hint to users that that might be the source of the problem.
"Using connected_app 'xyzzy' "
It would be cool if there is a way to probe whether the connected app is compatible with the login-url before literally connecting but I guess that's probably impossible.
Does this make sense to you @Br4nd0R , @davisagli ?
(edited to say connected app instead of connected org)
Sure, couldn't hurt.
But also we should let users specify which connected_app to use when connecting an org, and we should store its name as part of the org_config so that it's possible to have different orgs connected via different connected apps.
It would be cool if there is a way to probe whether the connected app is compatible with the login-url before literally connecting but I guess that's probably impossible.
I think we should add a way to configure the production and sandbox login URLs for a connected app (defaulting to the production ones). Then when you're connecting an org you only have to pick the right connected_app and not remember which login URL it corresponds to.
But if the user is specifying a mydomain login URL then I don't think we have a way to automatically pick the right connected_app.
Covering in W-9863651