Security - Secure your Server-Side data
Wappler knows how important and sensitive server data can be and provides simple setup to ensure it can not be accessed by unauthorised users
Using the security provider tools you can secure your server actions so that no data will be shown to unauthorised users, if they somehow access the link to your server action.
Step 1: Here’s our server action, which contains a database query:
Step 2: Right click the step before the query:
Step 3: Open the “Security Provider” group:
Step 4: And press “Add Security Provider”:
Step 5: Load the same security provider, which you defined for the login action:
Step 6: Then right click the security provider step:
Step 7: Open the “Security Provider” group:
Step 8: And press “Add Security Restrict”:
Step 9: Select your security provider from the dropdown:
Step 10: 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”:
Step 11: 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.