The security module of any GeneXus application (web applications and smart devices applications) is provided by GeneXus Access Manager. Security controls are done automatically by enabling integrated security in your application.
Let´s see the steps to follow to start using GeneXus Access Manager in your KB.
Enable Built in security in my Knowledge Base
You just need to configure Enable Integrated Security property in your KB, and rebuild all.
What happens at KB level after enabling integrated security
See Creating the GAM repository for the first time from GeneXus
What happens at application level after enabling integrated security
After setting Enable Integrated Security property = True and doing "Rebuild all", the following happens in the application (web and SD 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