[Unwanted popup] "App Resources - This app requires you to authenticate to the following data sources. [..]" showing even if already authenticated

Hello,

When using a Open API Resource connection in a page, the users keep having an unwanted popup when opening the page, even if already authenticated.

This is related to Option to display resource authentication notification popup on resource use post. But the popup appears even if the user is already authenticated.

Best,

1 Like

As an update, my solution was to add some Custom CSS to hide the popup when a query ressource (here "whoami"; that must be duplicated accross all pages) does not return "Bad Request" error:

.ant-modal-root { display: {{ whoami.error == "Bad Request" ? "block" : "none" }}; visibility: {{ whoami.error == "Bad Request" ? "visible" : "hidden" }}; }

image

This has to be done at the page level (does not work at the module level, if the module is added to a page).
It seems the Custom CSS is shared accross the pages.

Works great so far in View mode.

However, please note that this prevents the popup to appear in the Editor mode (but one can still authenticate via the query resource "Re-auth" button):
image