Authorization Code + PKCE (Iframe)
This section describes how public clients (iframe) authenticate using OAuth 2.0 Authorization Code with PKCE.
Important domain separation
- Client Portal Hostname: Hosts the CRM login UI and handles user interaction (e.g. /login).
- Client API Hostname: Hosts the OAuth API endpoints (e.g. /oauth/token).
You can retrieve both domains from your registered OAuth Application in CRM.
Flow summary
- Customer Iframe postMessage to crm with PKCE parameters.
- Authorization code is issued and returned to your iframe.
- Your iframe exchanges the authorization code for tokens using the code_verifier.