Managing new browser window

Is there a way to open new browser window as popup and check when it is closed?
I checked but there is nothing for customization and obtaining reference.
If it is not possible, I will highly appreciate any alternative suggestions to implement my workflow.
I need to authorize confluence macros from a specific confluence page in my web application.
The desired workflow is to open a popup browser window with login page of my web application, where user will login to my web app and the confluence page id will be marked as authorized. After the popup window is closed, macros will be able to use my web app API and proceed with setup. The issue is that users can log in to my app via external services, e.g. Google.

1 Like

Hi @GrigoriyP,

Please try to use Custom UI modal for that.