Read in a load and return the groups a user is a member of by asking the appropriate provider
(self, load)
| 200 | return auth_list |
| 201 | |
| 202 | def get_groups(self, load): |
| 203 | """ |
| 204 | Read in a load and return the groups a user is a member of |
| 205 | by asking the appropriate provider |
| 206 | """ |
| 207 | if "eauth" not in load: |
| 208 | return False |
| 209 | fstr = "{}.groups".format(load["eauth"]) |
| 210 | if fstr not in self.auth: |
| 211 | return False |
| 212 | fcall = salt.utils.args.format_call( |
| 213 | self.auth[fstr], load, expected_extra_kws=AUTH_INTERNAL_KEYWORDS |
| 214 | ) |
| 215 | try: |
| 216 | return self.auth[fstr](*fcall["args"], **fcall["kwargs"]) |
| 217 | except IndexError: |
| 218 | return False |
| 219 | except Exception: # pylint: disable=broad-except |
| 220 | return None |
| 221 | |
| 222 | def _allow_custom_expire(self, load): |
| 223 | """ |