Security.properties - Axiom

Contents

Actions

Actions are your methods that are accessible from the URL.  For example:

  • main
  • MemberDirectory
  • shell


Roles

Roles are the definitions that allow access to certain Actions.

There are two predefined roles:

  • @Anyone - Anyone who visits the Action.
  • @Authenticated - Any person who has an active session.user object.

You too can define roles. You just use a string (eg. Admin, Content Manager, Jimmy)


Variable Roles

You can define variables for roles so that you can shorten the amount of text required for copying and pasting. You delimit multiple roles with commas.

You do this with the following:

  • $access_roles = Administrator,Jimmy
  • $admin = Administrator,Power User


Attaching Roles to Actions

To attach roles to actions you just provide a list of roles and variables delimited by commas.

main = $admin
MemberDirectory = $access_roles
shell = $access_roles,@Authenticated