Loading
Prepare for Email to Become the Default Login ExperienceRead More
Visual Studio Code Based Modeler for Consumer Goods Cloud
CLI Modeler Plugin Authentication Limitations

CLI Modeler Plugin Authentication Limitations

When you authenticate or open the browser simulator using the Visual Studio Code-based Salesforce CLI Modeler plugin, two login limitations can cause the Proof Key for Code Exchange (PKCE) authorization-code flow to fail. Configure your org and workspace settings as described here to ensure successful authentication.

Required Editions

Available in: Lightning Experience
Available in: Enterprise and Unlimited Editions that have Consumer Goods Cloud enabled.
User Permissions Needed
To update My Domain settings: Customize Application OR System Administrator

Resolve Custom Domain Link Limitation

When you start a login or test connection, Modeler opens an authentication popup with a Use Custom Domain link. If you select this link during authentication, it can pin the authorization request and token exchange to different hosts and cause the login flow to fail.

Follow these steps to resolve this limitation:

  1. Don't select Use Custom Domain in the login popup.
  2. Instead, configure your org's My Domain in your Modeler workspace configuration file (config.json): set the sfSubDomainURL property to your org's My Domain URL.
  3. Save config.json, and authenticate again.
 
Loading
Salesforce Help | Article