Accessing protected Server Connect scripts with API

Hi,
I m trying to connect my new electron app to the web app I already done.

All the Server Connects scripts are protected.

The my question is:

should I make in the Desktop App a form connected with the Server connect login script through App Connect API Form?

Because I tried but unsuccessfully.

If someone can give me hints will be welcome.

Thank you

Roberto

I made a too idiot question? :frowning:

Hello @updates
The API Form component is used for external API services.
What you are trying to do should be done with a regular server connect form and regular server connect login action.

Thank you @Teodor.
but in case of mobile app or Electron if I understand well I should refer to a pre existent server xonnect script.

How can I make the login for a Mobile or Electron app?

Because all other scripts I should point from.mobile or electron app are protected with Server Connect Security Provider.

Thank you. Roberto

Please check the following topic:

The logic is the same - you need two projects, a normal web project and another for your mobile app. You just select the login action from the web project, to log users in.

Hello @Teodor
how can we add page restriction to sub page if file extension is html ?. Because wappler security works with aspx , php … file extensions .

You cannot use security enforcer on pages with PHP/ASP extensions.
You can use the condition component to hide the content of the app pages, for users who are not logged in.

1 Like

Thank you @Teodor !!