Allows eauth module to modify the access list right before it'll be applied to the request. For example ldap auth module expands entries
(self, load, auth_list)
| 184 | return None |
| 185 | |
| 186 | def __process_acl(self, load, auth_list): |
| 187 | """ |
| 188 | Allows eauth module to modify the access list right before it'll be applied to the request. |
| 189 | For example ldap auth module expands entries |
| 190 | """ |
| 191 | if "eauth" not in load: |
| 192 | return auth_list |
| 193 | fstr = "{}.process_acl".format(load["eauth"]) |
| 194 | if fstr not in self.auth: |
| 195 | return auth_list |
| 196 | try: |
| 197 | return self.auth[fstr](auth_list, self.opts) |
| 198 | except Exception as e: # pylint: disable=broad-except |
| 199 | log.debug("Authentication module threw %s", e) |
| 200 | return auth_list |
| 201 | |
| 202 | def get_groups(self, load): |
| 203 | """ |
no test coverage detected