
MASRURA.96958 (Customer) asked a question.
Salesforce.com SCIM Provisioning - OAuth popup returns about:blank in Okta Preview org
Environment:
- IdP: Okta Preview org (wfpp-ec4b5.oktapreview.com)
- SP: Salesforce Developer Edition
Problem:
When enabling SCIM provisioning on the Salesforce.com app in Okta, clicking "Authenticate with Salesforce.com" opens a popup that shows about:blank and immediately closes without loading a Salesforce login page. This results in the error: "Could not verify the Salesforce administrator credentials."
What was tried:
- Verified API Enabled on System Administrator profile
- Removed IP restrictions in Salesforce Network Access
- Created a custom Connected App with correct OAuth scopes and callback URL
- Relaxed IP restrictions on the Connected App
- Enabled "Allow OAuth Username-Password Flows" and "Allow Authorization Code and Credentials Flows"
- Changed Instance Type from Sandbox to Production in Okta
- Added Custom Domain in Okta General settings
- Tested in both Edge and Chrome
- Installed orgfarm_app_1 (Okta's built-in connected app) in Salesforce
Note: The UI shows a green "API is authenticated" banner simultaneously with the red error, suggesting a state conflict.
Suspected cause: Compatibility issue between Okta preview org and Salesforce Developer Edition OAuth popup flow.

Updating this response for ease of access and reference:
A configuration mismatch between the Okta instance and the Salesforce Connected App causes Salesforce to reject the Open Authorization (OAuth) handshake. Resolve this issue by verifying the callback URL, Proof Key for Code Exchange (PKCE) configuration, OAuth scopes, permitted users policy, and credential formatting. When enabling System for Cross-domain Identity Management (SCIM) provisioning on the Salesforce.com application in Okta, clicking Authenticate with Salesforce.com opens a popup that shows about:blank
and immediately closes without loading a Salesforce login page. This results in the following error:
Could not verify the Salesforce administrator credentials.
NOTE: The Okta user interface shows a green API is authenticated banner simultaneously with the red error, suggesting a state conflict.
Applies To
Cause
A configuration mismatch between the Okta Preview instance and the Salesforce Connected App or External Client App causes Salesforce to instantly reject the OAuth handshake before the login screen loads.
Solution
How do administrators resolve the callback URL mismatch?
Since the environment is an Okta Preview org, the administration domain ends in oktapreview.com
instead of okta.com. If the Callback URL in the Salesforce Connected App does not exactly match the Okta Preview environment, Salesforce instantly blocks the request. Verify the callback URL in the Salesforce OAuth settings by following these steps.
Verify the PKCE configuration.
Salesforce strictly enforces PKCE for integrations. If the PKCE expectations do not match exactly on both sides, the popup fails immediately. Ensure the PKCE configuration matches in both Salesforce and Okta by following these steps.
How do administrators verify the OAuth scopes?
If the Salesforce Connected App does not request the exact permissions Okta needs, the authorization fails silently. Verify that the Salesforce Connected App has the required scopes enabled by checking these settings.
Update the permitted users policy.
If administrators configure Salesforce to only allow pre-approved administrators to use the application, the OAuth flow might fail during self-authorization. Update the permitted users policy in Salesforce by following these steps.
How do administrators remove trailing spaces in credentials?
Okta is highly sensitive to formatting. If a trailing space exists at the end of the Consumer Key or Consumer Secret when pasting them from Salesforce into Okta, Okta deems the credentials invalid and the popup fails. Remove trailing spaces by following these steps.