Authorize Access to brightR Apps

In order to designate the users that can access a brightR app, you should create a brightRserver security file, named brightR.sec. brightR.sec files are placed in the application directory to which you wish to grant access. These files contain the groups and/or email addresses which will have access to this application directory and associated content.

All brightR apps can be accessed by SuperAdmins and/or Editors, whether or not they are listed in the brightRserver security file and/or a brightRserver security file even exists. If no brightR.sec file is found in an application directory, the brightRserver searches recursively upwards until it finds a brightR.sec file.

A brightR.sec file at the highest level of /yakdata will not be accepted for security purposes. If you want to ensure that only SuperAdmins and/or Editors can access a brightR app, create an empty brightR.sec in the application directory. This will prevent a higher-level brightR.sec file from being used to allow access to brightR apps in lower-level directories.


Create brightR security file

In open-source RStudio Desktop, these are the steps to create a new brightR.sec file:

FileNew FileText File new tab with an empty code pane appears, “Untitled 1”

In the empty pane, Line 1 → enter either a group name or an email address that you added on the Administration page.

Note that you can mix the two options in one brightR.sec file, so continue with one group name or email address per line as needed. Do not include commas or other delimiters in your file.

When finished, save this file in the same folder as your brightR app. If your app is more complex than this example, having multiple subdirectories, save the brightR.sec file at the same level as your app.R or server.R file.

Go to FileSave As brightR.sec, navigate to the folder with the Simple_Test app and then click on Save.


Article created: brightRserver Version 1.0.0