pub struct NtlmSspi { /* private fields */ }
Expand description
Either perform single-sign-on using NTLM (performing a login with the current windows identity) or validate incoming auth requests
§Warning
Using target_spn
or/and channel_bindings
is RECOMMENDED for security purposes!
Implementations§
Trait Implementations§
source§impl Authenticator for NtlmSspi
impl Authenticator for NtlmSspi
source§fn auth_scheme(&self) -> &'static str
fn auth_scheme(&self) -> &'static str
HTTP auth schemes, as defined in RFC7235
source§fn http_incoming_auth<'a, R>(
&'a mut self,
get_header: R
) -> Result<AuthState, Box<dyn Error>>
fn http_incoming_auth<'a, R>( &'a mut self, get_header: R ) -> Result<AuthState, Box<dyn Error>>
Performs authentication against a received request from the client.
If authentication is incomplete, the caller is instructed through AuthState::Response
to send the http response contained in AuthState::Response (401) to the client.
After a full authentication attempt, do not call this method on the same Authenticator instance again.
source§fn http_outgoing_auth<'a, F>(
&'a mut self,
get_header: F
) -> Result<AuthState, Box<dyn Error>>
fn http_outgoing_auth<'a, F>( &'a mut self, get_header: F ) -> Result<AuthState, Box<dyn Error>>
Provide an authentication state so the caller can retry an outgoing request until the server
has all needed authentication information.
If authentication is incomplete, the caller is instructed through AuthState::Response
to retry the http request to the server with the headers contained in AuthState::Response.
After a full authentication attempt, do not call this method on the same Authenticator instance again.
Auto Trait Implementations§
impl Freeze for NtlmSspi
impl RefUnwindSafe for NtlmSspi
impl Send for NtlmSspi
impl Sync for NtlmSspi
impl Unpin for NtlmSspi
impl UnwindSafe for NtlmSspi
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more