Authenticate a user by the external auth module specified in load. Return True on success or False on failure.
(self, load)
| 510 | return token |
| 511 | |
| 512 | def authenticate_eauth(self, load): |
| 513 | """ |
| 514 | Authenticate a user by the external auth module specified in load. |
| 515 | Return True on success or False on failure. |
| 516 | """ |
| 517 | if "eauth" not in load: |
| 518 | log.warning('Authentication failure of type "eauth" occurred.') |
| 519 | return False |
| 520 | if load["eauth"] not in self.opts["external_auth"]: |
| 521 | log.warning('The eauth system "%s" is not enabled', load["eauth"]) |
| 522 | log.warning('Authentication failure of type "eauth" occurred.') |
| 523 | return False |
| 524 | |
| 525 | # Perform the actual authentication. If we fail here, do not |
| 526 | # continue. |
| 527 | if not self.time_auth(load): |
| 528 | log.warning('Authentication failure of type "eauth" occurred.') |
| 529 | return False |
| 530 | |
| 531 | return True |
| 532 | |
| 533 | def authenticate_key(self, load, key): |
| 534 | """ |
no test coverage detected