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

Method authenticate_eauth

salt/auth/__init__.py:512–531  ·  view source on GitHub ↗

Authenticate a user by the external auth module specified in load. Return True on success or False on failure.

(self, load)

Source from the content-addressed store, hash-verified

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

Callers 2

mk_tokenMethod · 0.95
check_authenticationMethod · 0.95

Calls 2

time_authMethod · 0.95
warningMethod · 0.80

Tested by

no test coverage detected