Request for Authentication Prompt

Hi Jumpei!

I looked into doing this with a bit of custom css like on How to write custom CSS in Retool!, to hide the OK button but there were some limitations. The confirmation button’s class is shared with the confirmation for deleting components and queries, so it affected that as well. In addition, the confirmation modal can be exited using the escape button.

The next best option I can think of is to run another query inside of retool to that authentication test endpoint, and then disable some of the UI in the app based on that result. Since the resource isn’t authenticated anyways, none of that data would be displayed in the app. This could let you conditionally hide components using their “Hide when true” setting, and to show a notice to the user that this app must be authenticated to be used.

I think for this feature request, we should specifically give an option in the resource setting to something along the lines of “restrict access to apps using this resource if the user is not authenticated”, to force users to authenticate if they want to use the app in any capacity.