pub enum AuthMethod {
Basic,
Ntlm,
Kerberos,
Certificate,
CredSsp,
}Expand description
Authentication method for the WinRM HTTP transport.
Variants§
Basic
HTTP Basic authentication. Credentials are sent as a base64-encoded
Authorization header on every request. Only safe over HTTPS.
Ntlm
NTLMv2 challenge/response authentication (default). Performs a three-step handshake (negotiate, challenge, authenticate) per request.
Kerberos
Kerberos authentication (requires kerberos feature and prior kinit).
Uses SPNEGO Negotiate tokens via the system Kerberos library.
The service principal is derived as HTTP/<hostname>.
Certificate
TLS client certificate authentication.
The reqwest::Client is configured with the client cert at construction
time. No Authorization header is sent; the TLS handshake authenticates.
CredSsp
CredSSP authentication for double-hop credential delegation.
Wraps NTLM or Kerberos inside a TLS channel, allowing credentials
to be delegated to the remote host for accessing network resources.
Requires HTTPS (use_tls = true).
Not yet implemented — will return an error at runtime.
Trait Implementations§
Source§impl Clone for AuthMethod
impl Clone for AuthMethod
Source§fn clone(&self) -> AuthMethod
fn clone(&self) -> AuthMethod
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more