Skip to content

Config_Brain_Security

Keith Sterling edited this page Sep 22, 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

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
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