Skip to content

Config_Brain_Security

Keith Sterling edited this page Nov 13, 2017 · 10 revisions

Brain Security Configuration

   security:
        authentication:
            classname: programy.utils.security.authenticate.passthrough.BasicPassThroughAuthenticationService
            denied_srai: AUTHENTICATION_FAILED
        authorisation:
            classname: programy.utils.security.authorise.usergroupsauthorisor.BasicUserGroupAuthorisationService
            denied_srai: AUTHORISATION_FAILED
            usergroups: $BOT_ROOT/config/roles.yaml

Authentication

Name Description Example Default
classname Defines the full python path of the class to loaded which implements the base class 'Authenticator' programy.utils.security.authenticate.passthrough.BasicPassThroughAuthenticationService None
denied_srai If authentication fails, then the interpreter excutes the grammar defined in this setting as an SRAI operation. Your aiml files should contain this as a category pattern with appropraite text showing access denied AUTHENTICATION_FAILED None
denied_text Rather the specify an SRAI element, specifying this instead results in just the actual text being returned without any further processing Access Denied None

Authorisation

Name Description Example Default
classname Defines the full python path of the class to loaded which implements the base class 'Authorisor' programy.utils.security.authorise.usergroupsauthorisor.BasicUserGroupAuthorisationService None
denied_srai If authorisation fails, then the interpreter excutes the grammar defined in this setting as an SRAI operation. Your aiml files should contain this as a category pattern with appropraite text showing access denied AUTHORISATION_FAILED None
denied_text Rather the specify an SRAI element, specifying this instead results in just the actual text being returned without any further processing Access Denied None
usergroups Full path to a Yaml configuration file containing users, groups and roles to use with the authorisation service $BOT_ROOT/config/roles.yaml None
Clone this wiki locally