How to skip the "login to Foundry" with hosted application on first access?

I’m using the Ontology SDK to build my own React application, hosted on Foundry.

When users access the application for the first time, they get prompted with a OAuth Authorization page, requesting them to authorize my third party application to OAuth with Foundry.
image

Can I avoid this step ? Is there a way for my users to get logged-in without having to click a button ?

For application using the user’s permissions:
It is not possible to skip this step, as this is part of the OAuth workflow.

In other words: it isn’t possible to skip the login screen if you’re using the “Authorization code grant” OAuth flow (where access to ontology data is restricted by the logged in user’s permissions)

If the application has its own permission (aka, like a service user) and is not using the end user’s permissions, then this step is not needed.

In other words: by using the “Client credentials grant” OAuth flow, you’d be able to skip the login screen here but then that means ontology access isn’t scoped to any particular user, and instead depends on the application’s access (its service user)

This step is called the user consent step, where as part of the OAuth flow, users are being presented with the set of operations the application is going to use on their behalf.
You can bypass this step for the entire organization using the enablement setting in control panel.

Note this will not skip the login step but will skip the consent step.