The security module of any GeneXus application (web applications and mobile applications) is provided by GeneXus Access Manager. Security controls are done automatically by enabling integrated security in your application.
To start using GeneXus Access Manager in your Knowledge Base you just need to configure Enable Integrated Security property = Yes in your KB at version level and rebuild all.
A shortcut for enabling integrated security is offered in the main GeneXus menu: Tools > GeneXus Access Manager > Enable Integrated Security.
See Creating the GAM repository for the first time from GeneXus
After setting Enable Integrated Security property = True and doing Rebuild all, the following happens in the application (web and mobile application):
- Automatic access control in each object which has Integrated Security Level property = Authentication or Authorization.
- Automatic flow of the application after the access control. Before executing any object the generated code validates if the session is valid, if not, the Login Object for Web or Login Object for SD executes and after validating the session returns automatically to the object where the invalid session exception had been thrown.
- Automatic check of permissions at start up if Integrated Security Level property = Authorization.
GAM Examples are consolidated in the KB is the user decides to do so, during GAM Activation Process.
My first SD application with integrated security enabled