Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel

Local Authentication Properties: A set of standard SAIS framework properties that tell the security framework. The following properties are used for local authenticationcan be used to directly set the user and roles in local development environments.

local.authentication=true
local.user.name=sabrownbeaver
local.user.password=whatever

All of these the above properties must be present to set a user.  The local authentication properties should never be set on SAIS servers.
They are set in the Application Property File that resides in the user's home folder.

Roles may be set also, here is an example:

local.mitroles = WTW_REPORT_ADMIN | 1 5 21W, WTW_READ

This sets two roles, WTW_REPORT_ADMIN and WTW_READ, and also sets qualifier codes 1, 5, and 21W on WTW_REPORT_ADMIN. The meaning of qualifier codes is role dependent, and some roles have no qualifiers. In this case the qualifiers represent departments that the user has this role for.

Only MIT roles database roles may be set this way. Other roles like instructor and student are best set by setting the user as shown above to a student or instructor.

exceptionTranslationFilter: catches all exceptions from the filters that follow. Applies configured exception handlers based on the exception type caught. For example, if an AuthenticationException is thrown, indicating that the request is not authenticated yet, then it calls the method to start the authentication process.  If an AccessDeniedException is thrown, indicating that the user is not authorized, then the AccessDeniedHandler is called.

...