Option to display resource authentication notification popup on resource use

It would be nice to have an option to display the resource authentication notification popup only when the resource actually needs to be used, instead of on app load.

In our use case, many of the users don't really use the resource and don't need to be authenticated. Moving the resource to another app doesn't make sense either since it's connected to one of the core features of the app.

Simply prompting the user to authenticate only before the resource needs to be used would alleviate a lot of the inconvenience.

Hello @gasperblk!

Interesting idea, I can submit a feature request to our eng team.

One dirty solution is to add some Custom CSS to hide the popup:

.ant-modal-root { display: none; visibility: hidden; }

This has to be done at the page level (does not work at the module level, if the module is added to a page).

2 Likes

Hey @Jack_T did you ever make any progress on this? This modal displays every time a user logs in and it is unnecessary since we handle this logic in a way that is more user friendly.

The custom css suggested here still causes the modal to flash before hiding it.

Hi @bradycaspar,

I just added your +1 to this ticket thread!

It looks like this ticket got pushed to the backlog but I just re-opened it :crossed_fingers:

Thanks @Jack_T ! Is this popup displayed because we use custom auth and/or the redirect to SSO step? Can you think of any workaround for us?

I believe the popup to 'Authenticate' is from the Resource not having the token required to make the request.

So weather this token is provided via custom auth or an SSO provider, it will always appear to ensure that un-authed users are not gaining access to private or critical data.