Example Setup
The examples in the following sections involve creating users, resources, and roles as well as assigning users to roles. The appendix to this tutorial contains instructions for performing each of these tasks:
-
For instructions on creating new users, read Creating a User.
-
For instructions on creating a new resource, read Creating a Resource
-
For instructions on creating a new role, read Creating a Role.
-
For instructions on adding a user to a role, read Adding a User to a Role.
In addition, some of the examples require that you import the class SecurityTutorial.AuthorizationTests into Caché. This class is stored in Authorization.xml.
-
For instructions on importing a class into Caché, read Importing Code Using Terminal.
Authorization.xml is in install-dir\Dev\tutorials\security\. In a standard Caché installation, install-dir is in C:\InterSystems\Cache. Import the application files into the USER namespace using Terminal. Importing Code Using Terminal contains instructions. This example assumes that you have installed Caché using minimal security.