Setting and Getting Servoy Security Settings

Hi

I’m looking for solutions to implement the Security (Groups, Users, Rights, LDAP) for our application. The Users are in an DB Table. The Groups are not implemented. Also LDAP is not implemented.

In Eclipse in the Security Tree I found the funciton «security.setSecuritySettings(dataset)». Now there are some Questions:

  • If I set the Security Settings with this function are they saved for the Group or temporary?
  • How can I get the Security Settings out of the application Server?
  • What is the best practice to work with the internal Security System? (The Users should set the Rights by themselves)

Regards,

Stef

Stef,

security.setSecuritySettings(dataset) is for setting access to forms, elements and tables, so which groups may see elements or data, the same stuff you set in form editor and table editor.
It does not handle user management.

How to work with a login-solution is described here.
http://wiki.servoy.com/display/public/D … d+Security

Hope this helps,

Rob

Thanks for this tip Rob. I implemented an Login-Solution and Authenticate-Solution with an User Table and Groups Table and I got it to Login a User with the password to a group. The group has now the rights set in the Developer.

Now I want to set the rights not static by the developer but in the User Interface by the User. For this I can use the function «security.setSecuritySettings(dataset)» witch sets the rights for the logged in group.

  • Now If I set the Security Settings with this function are they constantly saved oder temporary?
  • If I want to look up the current Security Setting saved in the application Server. Is this possible and how can i do this?

Regards,

Stef

Stef,

security.setSecuritySettings(dataset) overwrites permissions on tables, forms and elements in the current client, they are not saved.
When the client closes they are lost again.
Best to calculate and set your security settings in the solution.onOpen method.

There is no API to retrieve the current security settings.

Rob

Thanks for the response! This helps much.

Regards,

Stef