MCPcopy Create free account
hub / github.com/saltstack/salt / __process_acl

Method __process_acl

salt/auth/__init__.py:186–200  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 1

get_auth_listMethod · 0.95

Calls 2

formatMethod · 0.80
debugMethod · 0.80

Tested by

no test coverage detected