https://discord.umbraco.com logo
#package-development
Title
# package-development
m

mistyn8

09/08/2022, 11:18 AM
I think you are looking for a "postMessage" from the redirect_uri from your authWindow.. in the semrush code you have pointed to thats /oauth2/umbraco/success https://github.com/umbraco/Umbraco.Cms.Integrations/blob/main/src/Umbraco.Cms.Integrations.SEO.Semrush/Configuration/SemrushSettings.cs#L19-L20 I also found a blog post from @Andy Butland that seems to relate to the hubspot integration
Copy code
if (window.opener && typeof opener.postMessage === 'function') {
  opener.postMessage({
    type: 'hubspot:oauth:success',
    url: location.href,
    code: '@Model.AuthorizationCode'
  }, '*');
  window.close();
}
presumably is what goes on when the /oath2/umbraco/success callback url is hit.