MCPcopy
hub / github.com/saltstack/salt / _prep_auth_info

Method _prep_auth_info

salt/master.py:4105–4121  ·  view source on GitHub ↗
(self, clear_load)

Source from the content-addressed store, hash-verified

4103 }
4104
4105 def _prep_auth_info(self, clear_load):
4106 sensitive_load_keys = []
4107 key = None
4108 if "token" in clear_load:
4109 auth_type = "token"
4110 err_name = "TokenAuthenticationError"
4111 sensitive_load_keys = ["token"]
4112 elif "eauth" in clear_load:
4113 auth_type = "eauth"
4114 err_name = "EauthAuthenticationError"
4115 sensitive_load_keys = ["username", "password"]
4116 else:
4117 auth_type = "user"
4118 err_name = "UserAuthenticationError"
4119 key = self.key
4120
4121 return auth_type, err_name, key, sensitive_load_keys
4122
4123 def _prep_jid(self, clear_load, extra):
4124 """

Callers 3

runnerMethod · 0.95
wheelMethod · 0.95
publishMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected