Popup Window Context Lost During OAuth Login

Hi,

I’m currently working on integrating several CRM platforms with our system, including Pipedrive, and I’ve encountered an issue specific to Pipedrive’s OAuth login flow.

When our application opens a popup window to initiate the OAuth login, and the user is not already authenticated, the login flow triggers a full-page redirect within the popup. This behavior causes the window.opener reference to be lost, which prevents our application from securely passing the authorization result (e.g., token) back to the main application window via postMessage. As a result, we’re unable to complete the OAuth process on our end.

Interestingly, this issue does not occur with other major CRM providers such as Salesforce or Zendesk, where the popup context is preserved even when login is required.

Is there any recommended workaround or configuration on your side that would allow us to preserve the popup context during the entire authentication process?

Best regards