Skip to content

Secure Data APIs

teodorpk edited this page Jun 14, 2018 · 2 revisions

Using the security provider tools you can secure your server actions so that no data will be shown to not-authorized users, if they somehow access the link to this server action.

Here's our server action, which contains a database query:

Right click the step before the query:

Open the security provider menu:

And add security provider:

Load the same security provider, which you defined for the login action:

Then right click the security provider step:

Open the security provider group:

And add Security Restrict:

Select your security provider from the dropdown:

And select if this server action requires any specific permissions. In our case it doesn't require any permissions so we select - All Logged In:

Save your server action:

And you are done. You won't be able to preview the server action results (using the preview in browser button) as you are not logged in.

NEXT: Learn how to log out users using a button.

Clone this wiki locally